p.naveen437
BAN USER- 2 Answers javaprogram
please send me ans
- p.naveen437 April 12, 2013| Flag | PURGE
Please read the following carefully and submit the program code.
Question # 980
A person is healthy if the following conditions are satisfied:
1. He eats at least two fruits daily and one of them is "Apple" OR a fruit that ends with 'o'
2. His Parents don't have more than one diseases that belong to hereditary diseases. Hereditary diseases are : "Cancer", "Diabetes", "Osteoporosis" and "Depression"
3. If height is more than 160cm, weight should be more than 70kg otherwise weight should be less than or equal to 70
4. He should not be taking medicines. If he takes then he should not be alcoholic
Write a method:
boolean isPersonHealthy(String dailyFruits[], String[] parentDiseases, int height, int weight, boolean takesMedicines, boolean isAlcoholic)
dailyFruits list of fruits that a person eats every day
parentDiseases list of diseases that his parents suffered from
height height of the person in centimeters
weight weight of the person in kg
takesMedicines whether person is currently taking medicines or not
isAlcoholic whether a person drinks alcohol or not
plz write above program in c,c++,java
- p.naveen437 April 12, 2013