Computer Science 121

Assignment 7

Due: December 8, 1999

Write an application that will read height and weight information from a file and display the body mass index. Again, the body mass index is the weight times 705 divided by the height squared. The file should be a text file and contain data for at least five people. The person's height should be on one line and the weight on the next one. Your application should have at least two classes, one that contains the main method and the other that reads the data from the file into an array (or arrays), computes the BMI and then displays the results on the screen.