CS 121 Assignment 7: Reading Height, Weight Data & Calculating BMI, Assignments of Computer Science

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

Pre 2010

Uploaded on 08/09/2009

koofers-user-ez3
koofers-user-ez3 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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.

Partial preview of the text

Download CS 121 Assignment 7: Reading Height, Weight Data & Calculating BMI and more Assignments Computer Science in PDF only on Docsity!

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.