Dynamic Allocation

Lab Assignment #8


Assignments:

1. Add a manual selection that interfaces with the user to your program. Add a user selection menu at the beginning of your program. You can use either switch or if else if statement to do so.
2. The user interface:

Enter your name: Tom Waits (example)

Hello Tom Waits, please select the service:

A: Investment projection
B: Retirement planning
C: Mortgage
D: College fund
E: Exit

If user select A, execute your lab 3 program.
If the user select E, output “Thank you.”
If the user select anything else, output “Invalid selection.”
3. Check to make sure that the user is input ONLY ABCDE or abcde
4. When the user finish transaction, prompt the user for another transaction, if the user enter N, end with “Have a nice day.”
5. Under (D), Prompt the user to enter:
Please enter the following:
Principle:
Interest rate:

After the user finish entering, output the following:

Hello Tom Waits:
Principle: xxxx
Interest rate: xxxx
Saving period (in month): X month
Net worth after X years: xxxx
Would you like to go back to Menu? (Y/N)
(both Y or y, N or n are accepted.)

6. When the user finish transaction, prompt the user for another transaction, if the user enter N, end with “Have a nice day.”
7. Under College fund (D), read “OptD.txt ” and input information for calculation. Each number represents one month of contribution. Therefore, sum every 12 month together for get yearly savings, and use your numbers you get from option D. Display the calculated results and output to a “College_fund.txt”
8. Under option D, prompt the user for

“Do you need to change field?”

If the user selects N or n, continue with the program.
If the user selects Y or y,

Prompt the user for: “Please enter month” and take month value
“please enter amount” and take the amount value.

Use a function “change” to reset change the data in your array or vector

Continue with the program.




Hi,

Do you need help understanding this assignment..? Please be sure to state what you need :)

Thanks!
Joe
sparkprogrammer@gmail.com
Topic archived. No new replies allowed.