Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for moods125

[[CODE]#include <iostream> #include <string> using namespace std; class digits { }; class numOutofRange { }; int string_to_int(string s) throw(digits, numOutofRange); int main() { int histogram[10]; int total; int currentNumber = 0; string s; for(int i=0; i < 10; i++) { histogram[i] = 0; } cout <<"How many numbers do you …

Member Avatar for moods125
0
155
Member Avatar for moods125

[CODE]#include <iostream> using namespace std; class Person { private: string name; public: Person(); Person(string the_name); string get_name() const; }; //////////////////////////////////////////////////////////////// class vehicle { protected: string name; int cylinders; Person owner; public: vehicle(); vehicle(string _name, int _cylinders, Person _owner); void display() { cout << name; cout << cylinders; cout << owner.get_name(); …

Member Avatar for Fbody
0
98
Member Avatar for moods125

[CODE]# include <iostream> using namespace std; void init(int *Ptr, const int &s); void display(int *Ptr, const int &s); void sort(int *aPtr, int s); void swap(int *v1Ptr, int *v2Ptr); int index_of_next_smallest(int *aPtr, int *SiPtr, int s); int main() { int size, count; int *nPtr; cout << "Enter the size: "; cin …

Member Avatar for Fbody
0
141
Member Avatar for moods125

[code]#include <iostream> using namespace std; //function protoytypes int roman2integer(); bool isValidRoman(string & r); int findIt(char ch); int main() { int choice; do{ switch(choice) { case 1: roman2integer(); break; case 2: //integer2roman(); break; case 3: //quit=true; break; default: return 0; }; }while( ); return 0; } /////////////////////////////////////////////////////////////////////////////// int roman2integer() { string …

Member Avatar for Salem
0
769
Member Avatar for moods125

can someone help me do this problem An array can be used to store large integers one digit at a time. For example, the integer 1234 could be stored in the array a by setting a[0] to 1, a[1] to 2, a[2] to 3, and a[3] to 4. However, for …

Member Avatar for moods125
0
268
Member Avatar for moods125

#include <iostream> #include <iomanip> using namespace std; //global constants const int SIZE = 12; //function prototypes bool getAverageRainFall(double rain[SIZE]); bool getExactRainFall(double rain[SIZE]); void displayResults(const double actual[SIZE], const double average[SIZE]); void printMonth(int month); // PRECONDITION: month holds an integer 1-12 // POSTCONDITION: the corresponding month (Jan, Feb, ..., Dec) has been …

Member Avatar for moods125
0
187