Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ (30 points) This is an extension of question 1. The following text file, names.txt, contains the names and heights in feet and inches of

image text in transcribed

C++

(30 points) This is an extension of question 1. The following text file, names.txt, 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 Eaton Wright Cary Oki Write a program that reads the data in the file and outputs the full name and ideal body weight for each person. Use a loop to read the names from the file. Your program should also handle an arbitrary number of entries in the file instead of handling only three entries. Note: all entries in the file are at least 5 feet. Sample output for a file with three entries only The ideal body weight for Tom Atto is 185 pounds The ideal body weight for Eaton Wright is 135 pounds The ideal body weight for Cary oki is 165 pounds (30 points) This is an extension of question 1. The following text file, names.txt, 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 Eaton Wright Cary Oki Write a program that reads the data in the file and outputs the full name and ideal body weight for each person. Use a loop to read the names from the file. Your program should also handle an arbitrary number of entries in the file instead of handling only three entries. Note: all entries in the file are at least 5 feet. Sample output for a file with three entries only The ideal body weight for Tom Atto is 185 pounds The ideal body weight for Eaton Wright is 135 pounds The ideal body weight for Cary oki is 165 pounds

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

3rd Edition

0760049041, 978-0760049044

More Books

Students also viewed these Databases questions