Question: C++ Program Write a program that 1. Prompts the user to enter the following information. Name (First and Last entered together separated by a space)

C++ Program

C++ Program Write a program that 1. Prompts the user to enter

Write a program that 1. Prompts the user to enter the following information. Name (First and Last entered together separated by a space) Age Address (Handle spaces) - Salary 2. Display (on one line) the information entered with format given below. Notice that the order is different than how the data was entered) Name (left justified in a field of 20) Address (left justified in a field of 20) Age (right justified in a field of 5) Salary (right justified in a field of 10, fixed, precision 2) Example output (the dashes represent spaces to see them more clearly): Fred Smith-123 Main St.43--67500.00

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!