Question: Copy/Paste your completed source code. Must always include completed standard comment header even if code is provided. Paste in a snippet (use snipping tool) of
Copy/Paste your completed source code.
Must always include completed standard comment header even if code is provided.
Paste in a snippet (use snipping tool) of output window (NOT complete window)
Copy and paste the following code to a new C++ project. debug it (e.g fix any bugs) then compile
and execute it. Take snippets of the outputs.
Question 1
/* Author:
Creation Date:
Last Modification Date:
Purpose:
*/
#indlude
using namespace std;
int main( )
{
const float KM_PER_MILE = 1.609;
float miles, kms;
cout << Enter the distance in miles: ;
cin >> miles;
kms = KM_PER_MILE * miles;
cout << The distance in kilometers is << kms << endl;
system(pause);
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
