Write a program that asks you to enter your height in


C Programming

1. There are 2.54 centimeters to the inch. Write a program that asks you to enter your height in inches and then displays your height in centimeters. Or, if you prefer, ask for the height in centimeters and convert that to inches.

2. In the U.S. system of volume measurements, a pint Is 2 cups, a cup is 8 ounces, an add-1-cons, and a tablespoon Is 3 teaspoons. Write a program that requests a volume in cups and that displays the equivalent volumes in pints, ounces, tablespoons, and teaspoons. Why does a floating-point type make more sense for this application than an integer type?

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a program that asks you to enter your height in
Reference No:- TGS01279424

Now Priced at $25 (50% Discount)

Recommended (92%)

Rated (4.4/5)