Question: Exercise 3 ) ( 4 Pts ) Develop a class BankAccount, which has the instance variables and functions in the UML table, and test the

Exercise 3)(4 Pts)
Develop a class BankAccount, which has the instance variables and functions in the UML table, and test the class by making the test program with the following menus: A: Set ID, B: Set Amount, C: Set Rate, and Q: Quit. After each command is input, display the total amount after 10 years as shown below by calling the amountAfter10Years() in the main function.(Exercise3.cpp)N$0.00$100.00$215.89N years>= amount * pow (1+ rate, N)+ amountAfter10Years() double: calculates the amount after 10 years
Choose Menu. A:Set ID,B:Set Amount, C:Set Rate, Q:Quit
A
Set ID.
123
Future Amount: $0.00
Choose Menu. A:Set ID,B:Set Amount, C:Set Rate, Q:Quit
B
Set the amount.
100
Future Amount: $100.00
Choose Menu. A:Set ID,B:Set Amount, C:Set Rate, Q:Quit
C
Set the rate.
0.08
Future Amount: $215.89
Choose Menu. A:Set ID,B:Set Amount, C:Set Rate, Q:Quit
Q
Exercise 3 ) ( 4 Pts ) Develop a class

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 Programming Questions!