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 * Description: (Give a brief description for Project) * Due Date: * I pledge that I have completed the programming assignment independently. I have not copied the code from a student or any source. I have not given my code to any student. Print your Name here: __________ */ o Indentation: It must be consistent throughout the program and must reflect the control structure. o Proper naming conventions: Variable and method names need to be descriptive to show the role of the variable or method. Avoid single letter names. Constant names should be all upper case, variable names should use camel case (i.e. start with lower case, with subsequent words starting with upper case: hoursWorked for example) or underscores to separate words (i.e. items_ordered).

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!