Answered step by step
Verified Expert Solution
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
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 poundsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started