Menu

(Solved) : 18 31 Welcome Sylvia Eclipse Workspace Exercise2 14 Java Src Exercise2 14 Java Eclipse Ide Q34901462 . . .

(목) 18:31 a ! Welcome, Sylvia + eclipse-workspace - Exercise2 14 java/src/Exercise2 14 java - Eclipse IDE import java.util.Sc

Modity this program so that the final answer (BMI) displayed out is rounded to the nearest tenth. You can use any way you kno

(목) 18:31 a ! Welcome, Sylvia + eclipse-workspace – Exercise2 14 java/src/Exercise2 14 java – Eclipse IDE import java.util.Scanner: 3 public class Exercise2 14( se public static void main(Stringll args) Scanner input new Scanner (System.in)a System.out.print (“Enter veight in pounds”) double weight = input.nextDouble(); 10 System.out.print (“Enter height in inches): 12 13 14 15 16 double height input.nextDouble): double bni – weighte.45359237 / (height 8.8254 height e.8254): Systen.out-print In(“BMI iS bmi)a 18 19 20 «terminated» Exercise2, 1 4 I Java Application! /Library/avalJavaVirtualMachineg dk-11 Ο 2 jdk)Contents Home Enter weight in pounds 188 Enter height in inches 72 BMI 15 24.412138181915257 inia o (a Smart Inser 20 1 Modity this program so that the final answer (BMI) displayed out is rounded to the nearest tenth. You can use any way you know how to round the final average to the nearest tenth. Use this website to learn about one way to round numbers in Java using printf: http://www.oxtordmat hcenter.com/drupal7/node/24 Once you have completed the modification, submit Exercise? 14java here. Show transcribed image text

Expert Answer


Answer to 18 31 Welcome Sylvia Eclipse Workspace Exercise2 14 Java Src Exercise2 14 Java Eclipse Ide Q34901462 . . .

OR