Answered step by step
Verified Expert Solution
Question
1 Approved Answer
My output seems to be wrong and was wondering if I could get feedback, for Java please? Debugging Exercise 3-1 Tasks DebugThree1.java + 1 //
My output seems to be wrong and was wondering if I could get feedback, for Java please?
Debugging Exercise 3-1 Tasks DebugThree1.java + 1 // This class calculates a waltperson's tlp as 15% of the bill 2 public class Debug Threei tudy Tools Find and fix any logic and syntax errors. 3 out of 10.00 public static void main(String args[]) ins 1 out of 2 checks passed. Review the results below for more details cess Tips 8 double myCheck - 50.00; double yourCheck - 19.95; System.out.println("Tips are"); calcTip(myCheck); calcTip(yourCheck); 9 Checks 10 cess Tips 11 DR YOU 12 public static void calcTip(double bill) Custom Test complete Correct case is used when referencing functions and variables Test Case Incomplete Program runs and produces correct output 14 15 16 17 final double RATE - 0.15; double tip; I tip - bill RATE System.out.println("The tip should be at least - tip); Test: Multiple mons Input 18 19) 20 wedback Output Tips are The tip should be at least 50.15 The tip should be at least 20.099999999 y Results Te are the test be at least 1.5 The te should be at least 2.0 Run Checks Submit 66 G Type here to searchStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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