Description
In this very easy assignment you are to construct the problem given at the end of the notes section called CPPIntro as a C++ program. The program should feet and inches as integers and convert those measures to centimeters.
Sample output: run 1
This program converts feet and inches measurements to centimeters.
Enter the feet of the length:1
Enter the inches of the length:1
1 feet and 1 inches equals 33.02 centimeters.
Sample output: run 2
This program converts feet and inches measurements to centimeters.
Enter the feet of the length:5
Enter the inches of the length:7
5 feet and 7 inches equals 170.18 centimeters.
Deliverables:
Submit the file that contains your program to the Dropbox for Lab1 on Beachboard.
To compile in linux,
- Open a terminal
- Use an editor like pico or vi to type your code in. (pico is very easy)
- At the command prompt type g++ yourfile.cpp
- A file called a.out is generated by the compiler
- To execute your program at the command prompt type ./a.out