Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

VISUAL C++, question Using information from the Internet or a book, list any fou

ID: 3865199 • Letter: V

Question

VISUAL C++, question

Using information from the Internet or a book, list any four facts about Visual Studio (history of, developers of, owners of, supported hardware, supported operating systems, etc.). Include your sources.

Using information from the Internet or a book, list any four facts about any of the four Visual Studio programming languages (history of, developers of, owners of, supported hardware, supported operating systems, etc.). These languages include Visual Basic, Visual C#, Visual C++, and Visual F#. Include your sources.

You've been hired by Metric Conversions to write software to convert a length in kilometers to feet, yards, and miles. Write a program in Visual C++ to prompt the user for a number (int) in kilometers, convert it to the three units, and display the input number and the three converted numbers. Here are the conversion factors:

1 kilometer = 3280.83989501312 feet

1 kilometer = 1093.6132983377078 yards

1 kilometer = 0.621371192237334 miles

[your program code here]

[your program output here]

Fact Source

Explanation / Answer

Please refer below code

#include<iostream>

#define FEET 3280.83989501312
#define YARDS 1093.6132983377078
#define MILES 0.621371192237334

using namespace std;

int main()
{
int km;

cout<<"Enter number of kilometers : ";
cin>>km;

cout<<km<<" in feet = "<<(FEET * km)<<" feets"<<endl;
cout<<km<<" in yards = "<<(YARDS * km)<<" yards"<<endl;
cout<<km<<" in miles = "<<(MILES * km)<<" miles"<<endl;
return 0;
}

Please refer below snapshot for output

Enter number of kilometers : 4
4 in feet = 13123.4 feets
4 in yards = 4374.45 yards
4 in miles = 2.48548 miles

Process returned 0 (0x0) execution time : 3.582 s
Press any key to continue.