CONVERSION
Write and Test a C++ development coded program to display a table of miles converted to kilometers. The output should be a table of miles and their equivalent kilometers.
The miles should reside in an Array called ”miles” and the kilometers should reside in an Array called “kilo”.
1. Create the miles array first from 1 to 50
2. Calculate the conversion from miles to kilometers and populate the kilo
array in the process. (1 mile to 1.61 kilometers)
3. Print both arrays’ simultaneously in a table format as listed below.
4. Your Name, Midterm and date should be at the top of your results.
Computer C++ code generated.
5. Only functions are allowed in Main.
6. You must have documentation in your C++ code, as follows:
a. Documentation for building the miles array – 3 full lines
b. Documentation for building the kilo array – 3 full lines
c. Documentation for performing the calculation from miles to
kilometers – 3 full lines
I did not list to 50 because of room on the assignment. This is exactly how it should be printed. Example below.
Miles = Kilometers Miles = kilometers
1. 1.61 11
2.
3
4
5
6
7
8
9
10. 16.09 20. 32.10
AAA 7.
Could you please add setw so the miles and kilometers values have a width of 10 between them, also add width of 5 between mile and = ,a width of 5 between = and kilometers So it looks good Thank you03/20/20