Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started