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

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
Get step-by-step solutions from verified subject matter experts
