Question
Python program: Ignore the all other options in programm and only give me the logic for the selection of option D, College fund. Assignments: 1.
Python program:
Ignore the all other options in programm and only give me the logic for the selection of option D, "College fund".
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
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 A 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.
OptD:
363
354
258
695
562
458
675
263
984
562
485
685
224
321
524
336
285
452
669
221
695
321
365
356
212
589
563
474
585
263
485
412
456
123
785
697
541
363
969
896
545
741
254
326
569
542
589
321
698
242
566
562
235
236
854
852
955
451
451
586
223
586
451
258
752
952
785
452
145
258
365
215
456
546
852
952
235
658
369
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started