Write the de?nitions for the three functions


C++ Assignment

I. Create a class named Cash. Include  one private integer variable to hold the number of dollars and one to hold the number of cents.  Create your own accessor and mutator functions to read and set both member variables.  Create a function that returns the amount of money as a double.  Test all of your functions.  Use at least 4 Cash objects.

II.

Part i: Create a bank account class.  The  private data members include an dollarsPart, centsPart and  interestRate .

The functions in the class include a function to set the private data members (setValues), a function to give value to the private data members (input) and  a function to display the private data members (output).

Part ii: Write the de?nitions for the three functions.

Part iii: Create a main function.In the main function create two objects of the BankAccount class named checking and savings. 

Call the input function to give values to the private data members as follows:  checking one dollar, 99 cents and 13% interest rate; savings ?ve dollars, 45 cents and 12% interest rate.

 Output the value for checking and savings.

 Use the setValues function to change the checking values to one dollar, 30 cents and 10% interest rate.

Output the value for checking.

Format your assignment according to the give formatting requirements:

1. The answer must be double spaced, typed, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also includes a cover page containing the title of the assignment, the course title, the student's name, and the date. The cover page is not included in the required page length.

3. Also include a reference page. The references and Citations should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write the de?nitions for the three functions
Reference No:- TGS03044662

Now Priced at $40 (50% Discount)

Recommended (90%)

Rated (4.3/5)