CSc 220 Assignment 1

A Lengthy Assignment

Assigned
Due

Aug 23
20 pts
Aug 30

This is a simple project for practice running and submitting a program.

Write a C++ program which requests a length in inches, represented as a floating point number, and prints out the equivalent length in centimeters. The conversion is simple: multiply the input number by 2.54.

[user@sandbox cs220]$ asst1 Please enter a length in inches: 3.5 3.5 in = 8.89 cm [user@sandbox cs220]$ asst1 Please enter a length in inches: 42.75 42.75 in = 108.585 cm [user@sandbox cs220]$ asst1 Please enter a length in inches: 10 10 in = 25.4 cm [user@sandbox cs220]$

Put your program in a file with an extension .cpp.

When your program works and looks nice, submit over the web here.