A simple rule to estimate your ideal body weight is to


Question: A simple rule to estimate your ideal body weight is to allow 110 pounds for the first 5 feet of height and 5 pounds for each additional inch. Create the following text in a text file. It contains the names and heights in feet and inches of Tom Atto (6'3"), Eaton Wright (5'5"), and Cary Oki (5'11"):

Tom Atto

6

3

Eaton Wright

5

5

Cary Oki

5

11

Write a program that reads the data in the file and outputs the full name and ideal body weight for each person. In the next chapter, you will learn about loops, which allow for a more efficient way to solve this problem.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: A simple rule to estimate your ideal body weight is to
Reference No:- TGS02404304

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)