Question: write a c program that prompts the user to enter...
Write a c++ program that
- Prompts the user to enter the following information.
- Name (First and Last entered together separated by a space)
- Address (Handle spaces)
- 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