Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Seven NoSQL Databases In A Week Get Up And Running With The Fundamentals And Functionalities Of Seven Of The Most Popular NoSQL Databases

Authors: Aaron Ploetz ,Devram Kandhare ,Sudarshan Kadambi ,Xun Wu

1st Edition

1787288862, 978-1787288867

More Books

Students also viewed these Databases questions

Question

LO3 Define the difference between job satisfaction and engagement.

Answered: 1 week ago