UN FILE:

PW FILE

OPTD FILE

LAB A

LAB B

LAB C

LAB D

THIS IS FOR C++, THANK YOU Assignments 1. Add a user login system to your user interface. (use array) (Read username from UN.txt, and read passwords from PW.txt) 2. The user log Enter user name: twm123 check to see if the username is in your file. If the user name is incorrect, display the following “User not found, re-enter username” If the use is found in UN.txt. display the following: Enter password: 123456 (correct password) If the username and password matches, go to the main menu. If not, display: “Re-enter password” 3. The main menu: Hello twm123, please select the service: A: Investment projection B: Retirement planning C: Mortgage D: College fund E: Exit skip Option B and C for now If user select A, execute your lab A program. You can If the user select E, output “Thank you.” 4. Check to make sure that the user is input ONLY ABCDE or abcde If the user select anything else, output “Invalid selection.”, and go back to main menu 5. When the user finish transaction, prompt the user for another transaction, if the user enter N or n, end with “Have a nice day.” 6. Under (D) Prompt the user to enter: Please enter the following: Principle After the user finish entering the requested information, output the following Hello twm123: Principle ХXX Interest rate: ХXXX Saving period (in month) Net worth after X years: Would you like to go back to Menu? (Y/N) (both Y or y, N or n are accepted.) Xmonth Xxxx When the user finish transaction, prompt the user for another transaction, if the user enter N end with “Have a nice day.” 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 to get yearly savings, and use your numbers you get from option D. Display the calculated results and output to a “College_fund.txt” 7. 8. Lab Deliverables: 1.upload your source code (.cpp file) onto Angel before the due date. 1. Name your project drop box 2.Attach your .cpp file and your output file.. Coursenumber_Lab#_LastName.cpp. Upload your .epp file in the as Maximum points can be taken: User name incorrect: -3 Input validation: -6 User prompt statement missing -6 File input and output: -10 Math calculation -10 Output file format and alignment: -5 Not following submission format -5 asb123 dfd322 gbd433 bgb756 gbf003 ssd123 bdg655 bgf553 fdx123 twm123 pawws322 dsfs4222 dser44 sdfds222 dfs56674 sf222 232ss3 232234 rewrw55 123456 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 We were unable to transcribe this imagee, Co Problem 2-1 Aretun, Amaur Acom, TA t ku, Write a program that ask the user for the flowing How many shares to be bought: The price per share: Percent commission for the broker for each transaction: Average annual return as of percentage: AproutShare Prie “icAmut Caut The program should calculate and display the following entl; The amount paid for the stock alonę (without the commission) The amount of the commission A com Amaet * u Cout ” -The total amount of paid (the payment for stock plus the commission) TtadA =Amount tAum After TEN years, your shares will worth: total = Amaunt Pow(1+ Areturm too Name your project as LabA and save your program (source code) as LabA.cpp. Cort T 1 D 1. Write a program to ask the user for the flowing Read the following from the txt file named “sample.txt”: (How many shares to be bought: (The price per share: N_shares P_shares P_commission (Percent commission for the broker for each transaction) A_return Year (Average annual return as of percentage: (How many years you will hold the stock: The program that calculates and displays the following: The amount paid for the stock alone (without the commission) The amount of the commission The total amount of paid (the payment for stock plus the commission) After X years, your shares will worth: Would you like a receipt? YN N e(se Have a nice day Write the following into a file called “receipt.txt”. (It is absolute important you output the following information into a file named “receipt.txt”) Your Name: 2 Your name S 25000.00 (example) 50.00 Total Stock: Commission S S 25050.50 S 125000.75 right Total amount: – Net worth in X years: Lab C 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: Cin name Enter your name: Jack Black (example) Hello Jack Black, please select the service getline Ccin, name A: Investment projection B: Retirement planning C: Mortgage D: College fund E: Exit If user select A or a, execute your lab A program. If the user select B or b, run your lab B program If the user select C or D, d, output “Service coming soon.” If the user select E, e, output “Thank you.' If the user select anything else, output “Invalid selection” and then prompt for user input again SOor 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 Cha 3_npot ualiolae 58 If user select A or a, execute your lab A program run Lab B If D or d, output”service coming soon.” If the user select E or e, output “Thank you. If the user select anything else, output “Invalid selection.” If the user select B or b user is input ONLY ABCDE or abcde, when invalid selection is 3. Check to make sure that the made, bring the user back to selection 4. When the user finish transaction, prompt the user end with “Have a nice day.” 5. Under (C), load a text file called “load.txt” which has the following info Principle Interest rate: (make sure you divide this number by 100) Loan term: (in years) for another transaction, if the user enter N Calculated and output the following information to a file called out.txt Hello Tom Waits Principle Interest rate: Loan term 33.00(etc) 33.00 5.00 Monthly mortgage is 22.00 Would you like to go back to Menu? (Y/N) (both Y or y, N or n are accepted.) 6. Under C, design a function called mort): After taking the inputs, call the function mort() to process the calculations 7. Go to the following linked for math calculation, and design your program based on these information. Make https://www.nerdwallet.com/blogfinance mortgage/ faq/calculate-monthly-mortgage payment http://www.wikihow.com/Calculate-Mortgage-Payments sure you understand the information before you proceed

"Get 15% discount on your first 3 orders with us"
Use the following coupon
"FIRST15"

Order Now