Question: Lab Description Compare four doubles to see which is the biggest. Sample Data 4.5 6.7 7.8 9.0 4.51 6.17 71.8 1.0 41.15 816.7 17.8 19.0



Lab Description Compare four doubles to see which is the biggest. Sample Data 4.5 6.7 7.8 9.0 4.51 6.17 71.8 1.0 41.15 816.7 17.8 19.0 884.5 16.7 7.8 9.0 4.5-456.7 677.8 9.0 4.5 16.7-7.8-9.0 Files Needed : BiggestDouble.java DoubleRunner.ava Sample Output: 4.5 6.7 7.8 9.0 biggest 9.0 4.51 6.17 71.8 1.0 biggest 71.8 41.15 816.7 17.8 19.0 biggest B16.7 884.5 16.7 7.8 9.0 biggest BB4.5 4.5-456.7 677.8 9.0 biggest 677.8 4.5 16.7-7.8-9.0 biggest 16.7 import static java.lang.System.* public class BiggestDouble private double one,two,three, four; public BiggestDouble() this(0,0,0,0) public BiggestDouble (double a, double b, double c, double d) //type code here public void setDoubles (double a, double b, double c, double d) //type code here public double getBiggest() //type code here public String toString() return "";//type code here import static java.lang.System.* public class DoubleRunner public static void main(String[] args) BiggestDouble run = new BiggestDouble ( 45 , 67, 78 , 90 ) ; System.out.println (run); System.out.println("biggest-"+ run.getBiggest) + "In") //add more test cases
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
