Question: Java Code Help pls these are the expected outputs Expected output Diameter: 10 Increase: 173 Increase: 208 Expected output Diameter: 7.5 Increase: 101 Increase: 127
Java Code Help pls
these are the expected outputs
| Expected output | |
|---|---|
| | Diameter: 10 Increase: 173 Increase: 208 |
| Expected output | |
|---|---|
| | Diameter: 7.5 Increase: 101 Increase: 127 |

After having done the hand calcuslation and pacudocods for a program that models inflating a spherical balloca, now implement the task in Java. Remember, first the balloon is inflated to have a certain diameter (which is provided as an input). Then you inflate the balloon so that the diameter grows by an inch, and display the amcunt the volume has grON. Repeat that step: grow the diameter by another inch and show the growth of the velume. Complete the following program Complete the following file Balloon.java 1 import Java.util.scanner 3 public class Balloon public static void nain(String[] args) Scanner in new 5canner(System.in). Systen.out.print("Dianeter:") double dianeter-in.nextDoubleO 1e 12 13 14 15 16 17 18 19 2e Systen.out.printf("Increase : Systen.out.println) %.ef", ..); Systen.out.printf("Increase : Systen.out.println); %.ef. ,)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
