Question: 4. (a) (10 points] Write the pseudocode for an algorithm that ask the user to enter first name, last name, age, and weight. Then it

 4. (a) (10 points] Write the pseudocode for an algorithm that

4. (a) (10 points] Write the pseudocode for an algorithm that ask the user to enter first name, last name, age, and weight. Then it should display the information on screen to user. For example, if user entered first name as Joe, last name as Smith, age as 30, and weight as 150, then the information should display these values on the screen in a manner similar to the following: Greetings from me. My name is Joe Smith. My age is 30 and my weight is 150 pounds. (b) [20 points) Develop the C++ program of the pseudocode developed in 4. (a). The program should define the first name and last name in string variables, age in integer variable and weight in float variable. The name of the submitted program must be myInformation.cpp NOTE: Use valid and meaningful variable names or identifiers. Some Programming Hints: 1. Use cout to display the result or output on the screen. 2. Use cin to get the input from the user. Sample Run Enter your first name: Joe J Enter your last name: Smith Enter your age (in years only): 30 - Enter your weight (in pounds): 150 - Greetings from me. My name is Joe Smith. My age is 30 and my weight is 150 pounds

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!