Answered step by step
Verified Expert Solution
Question
00
1 Approved Answer
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
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started