Question: Question Completion Status: QUESTION 22 Define a class Account with the following Specification. GRADE: Class Interface (40%) and Class Implementation (60%) Data Members: (10%) private:

 Question Completion Status: QUESTION 22 Define a class Account with the

Question Completion Status: QUESTION 22 Define a class Account with the following Specification. GRADE: Class Interface (40%) and Class Implementation (60%) Data Members: (10%) private: string name; //Name of Account Owner string occupation; //Describes Account Owner's Occupation double balance: //Account Balance double rate; //Account Assigned Rate int accountID: static int geniD; //Used to assign a unique ID to accountID - Set initially to zero Member Functions:(30%) public Account(string name="John Doe", string occupation = "Unemployed". double balance=0.0. double rate=0.0): void withdraw(double amount); // Withdraws an amount from Account Balance only if amount 0 void applyinterest(); // Applies interest to balance at the assigned rate of the Account string getName(); // Return Account Owner Name int getiD0; // Return Account ID string getOccupation0:// Return Account Owner's Occupation double getBalance(): // Return Account Balance double getRate(); // Return Account Rate void setName(string name);// Assign Account Owner Name void setOccupation(string occupation); // Assign Account Owners Occupation void setBalance(double balance); // Assign Account Balance void setRate(double rate); // Assign Account Rate: void printData(): //Print the content of the data members. static int getGenIDO: For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). I ps Paragraph Arial 14px > Click Save and Submit to save and submit. Click Save All Answers to save all answers

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!