Site hosted by Angelfire.com: Build your free website today!

 

C++ Program #1

11th grade

 

 

Write a program that will print out the following information:

 

                     John Doe

                     1234 Everywhere Lane

                     Somewhere, USA      90210    USA

                     E-mail: kd7mucs@ucs.misd.net

 

Part 1:

            Use your own information (it can be actual or use your creativity)

DON’T use variables for this program.

Have one cout for the name, one for the address, one for e-mail but use 3 cout’s for the city/state, Zip and country.

 

Part 2:

            Use ONE cout for all four lines of output(you should use the escape sequence of ‘\n’ for the new line and the tab sequence for the spacing on the third line.

NOTE: You can do one program that will do both parts as requested above.