Assignment 4: City Address
This is an individual assignment to be done by each student.
Here is the problem specification:
You want to create a program to get the first name, last name, address, city, state and zip code, and display the information with the city name followed by a comma, a space, the state name, one space, and the ZIP code. The program also generates California lotto numbers for the Mega Millions.
To generate the numbers, pick five lucky numbers from 1 to 75 and one MEGA number from 1 to 15.
John Doe
123 Stevens Creek Dr
San Jose, CA 95129
The lotto numbers for Mega Millions are:
7 16 28 53 60
Mega: 2
- Create an IPO chart. List the input, processing, and output items.
- Plan the algorithm using pseudocode.
- Save it in a filename LastFirst_a4.doc (e.g. DoeJohn_a4.doc)
- Enter your C++ instructions into a source file named LastFirst_a4.cpp (e.g. DoeJohn_a4.cpp). Include your name and comments in the program.
- Compile and run the program.
- Take a screen shot of the output. Append it in LastFirst_a4.doc.