
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Instructions for an assignment in computer science 121 where students are required to write an application that reads height and weight information from a text file, calculates the body mass index (bmi), and displays the results on the screen. The document also specifies the due date and the minimum number of data entries in the file.
Typology: Assignments
1 / 1
This page cannot be seen from the preview
Don't miss anything!

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.