Question: 1. Develop a program that displays the following information to the console, each piece of information on a separate line: o Your name o Your
1. Develop a program that displays the following information to the console, each piece of information on a separate line: o Your name o Your address; house #, street, city, state, and ZIP code o Your telephone number o Your college major 2. You must use only a single cout statement to display all the above information. 3. You must declare your name and major as a constant. Make sure to follow constant conventions. 4. You must declare your address and phone number as a variable literal. Make sure to follow variable conventions. General Requirements: Name your source file FirstInitialLastName_CW_[classwork #].cpp Include the following in your code in C++ source .cpp: o Program Header: All programming projects source code need to have one block comment at the top of the program containing the course name, CRN, the project number, your name, project description, and the due date. o Provide any additional comments as necessary to clarify the program. Following is a template of the required program header: /* * Class: CMSC140 CRN * Instructor: * Project
o Comments: If your variable/constant names are not descriptive to show the role of the variable or method, add comment to variables, formulas, or any pTart of the program with the purpose of making the source code easier to understand.
Submit: 1. C++ file (source code): FirstInitialLastName_CW_2.cpp 2. A document named FirstInitialLastName_CW_2.docx/doc/pdf which includes a screenshot of your output. Example output:
Tom Smith
765 main st, Rockville, MD 20877
301-123 - 7869
Computer Science
PS ; please note there is no spacing between each line of the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
