CECS 275-3  Lab Assignment 1

$30.00

Category: You will Instantly receive a download link for .zip solution file upon Payment

Description

5/5 - (7 votes)

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,

  1. Open a terminal
  2. Use an editor like pico or vi to type your code in. (pico is very easy)
  3. At the command prompt type g++ yourfile.cpp
  4. A file called a.out is generated by the compiler
  5. To execute your program at the command prompt type ./a.out