Question: Write a C++ program that displays a table of conversions from feet to meters. The program needs to prompt the user for the starting foot
Write a C++ program that displays a table of conversions from feet to meters. The program needs to prompt the user for the starting foot amount, the ending foot amount, and the step size. Set the column size to 15 for each field, right justify the numbers and the headings. The headings for the two fields must be Feet and Meters respectively. Use a row of dashes between the headings and the data. The numeric results must line up as shown in sample table. Display results for feet and meters with one decimal place. Use conversion factor of a 1 m = 3.048 ft.
The following demonstrates what the output should look like for the given sample data.
This program will convert from feet to meters.
Enter the foot step size: 20
Enter the starting foot amount: 0
Enter the ending foot amount: 60
Feet Meters
------------------------------------
0.00 0.0
20.00 6.1
40.00 12.2
60.00 18.3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
