Hello, everything you need to know is in the attached files, it wont take you more than 10mins to get it done 🙂
CPSC 120
Lab #3f
Name(s):
Launch Visual Studio and create a new C++ Win32 Console
Application.
w
Lab 3f-Reading Data From a File, Performing a Calculation
Step 1: Make sure the customer.dat file is in your project folder. If not, copy it there now.
customer.dat – Notepad
File Edit Format View Help
8751-212-1970 Robert A. Jones
8751-213-0587 Sally C. Smith
8752-020-9624 Michael J. Strickland
8757-451-2157 Dorthy M. Jackson
8792-904-1425 Carol T. Supersaver
25 14825.32
38 102697.25
31 63257.54
9 1253.25
4 9587.97
Step 2: Design and implement a program that reads the customer.dat file, which is comprised
of six (6) data items (e.g., account number, first name, middle initial, last name, age,
and account balance).
Step 3: Prompt the user for the expected rate of return (in decimal form).
Step 4: Generate formatted output for each customer in the file illustrating what their balance
will be when they reach age
65.
You may work with your partner (if applicable) and use your code from Homework #1.
Expected output-something like this:
Rclusers mdfalkow documents visual studio 2015 Projects Console Application\Debug\Console Application1.exe
hat is the expected annual rate of return (e.g., please enter percentage as a decimal): 8.07
ccount Number
Full Name
What Your Current Balance will be worth at Retirement
751-212-1970
151-213-0587
752-629-9624
Robert A. Jones $ 14,825.32 will be worth $ 243,797.15 in 40.00 years.
Sally C. Smith
$ 102,697.25 will be worth $ 679,798.96 in 27.08 years.
Michael 1. Strickland $ 63,257.54 will be worth $ 583,491.57 in 34.ee years,
Dorthy M. Jackson $ 1.253.25 will be worth $ 63,164.36 in 56.00 years,
Carol T. Supersaver $ 9,587.97 will be worth $ 685,747.30 in 61.00 years.
757-451-2157
792-984.1425
ress any key to continue