BMI - public static void main(Stringargs double mass =...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
public class BMI { public static double converth(double inc) { return inc/39.37; r } public static double convertw(double lbs) { return lbs/2.2; r } public static void calcBMI(double bmi ) { System.out.println("Body Mass Index:"+bmi);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: } public static void main(Stringargs) { double mass = converth(65); double kilograms = convertw(125); calcBMI(kilograms/(mass*mass)); c } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online