Design a program that takes the height of 10 people (you may take the heights in inches) and calculates average height. Based on the average height of these 10 people, determine if this group is better suited to be an MLB team, NBA team, or a group of Jockeys (e.g. Kentucky Derby). First record your raw data onto a spreadsheet. The raw data can be in inches. The dev C++ program is to read from the spreadsheet, calculate the average height, and output a summary of the results onto either a .txt or .rtf file. The summary should only include the average height and the appropriate sport. Please make sure the average height is in whole numbers and is in feet and inches.
Using Dev C++
Design a program that takes the height of 10 people (you may take the heights in inches) and calculates
average height. Based on the average height of these 10 people, determine if this group is better suited
to be an MLB team, NBA team, or a group of Jockeys (e.g. Kentucky Derby).
First record your raw data onto a spreadsheet. The raw data can be in inches. The dev C++ program is to read from the spreadsheet, calculate the average height, and output a summary of the results onto either a .txt or .rtf file. The summary should only include the average height and the appropriate sport. Please make sure the average height is in whole numbers and is in feet and inches.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images