This preview shows page 1. Sign up to view the full content.
Unformatted text preview: 2-Compute the status of each person using the following rule. If weight / (height)^2 > 27 status is “Obese” IfNot the status will be “Normal Weight ”. 3-Store all the obese persons into the file “ obese.data ” and store all the normal weight persons into the file “ normal.data ”. Person -name : String -height: double -weight : double -status : String +Person(na: String, double h, double w) + sets… all + gets. . all...
View Full Document
This note was uploaded on 11/28/2011 for the course COMPUTER S 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.
- Spring '11
- Java Programming