Question
Each of the following files (contained inside of the compressed folder) has syntax and/or logic errors. For your assigned file, determine and fix the problem.
Each of the following files (contained inside of the compressed folder) has syntax and/or logic errors. For your assigned file, determine and fix the problem. Turn the line(s) containing the error(s) into a line of comments and place the corrected code directly underneath. Comment the changes and why you changed it the way you did. Of course comment all the lines of code and include the Integrity Statement. After you correct the errors, save your file using the same filename preceded with Fix. For example, DebugThree1.java will become FixDebugThree1.java. As usual, please include the .java, .class and .docx for the screen shot of the output in one zip file properly named. Comment on one student's submission from two others in the 3 files/groups. (One post of your own that contains your correct file, then 2 additional posts, one for each file that you did NOT do).
Comment on Every single lines please
After rewriting the code and fixing the errprs, Please comment as to what each line of code is doing
Please comment as to what each line of code is doing
// This class calculates a waitperson's tip as 15% of the bill public class DebugThree1 { public static void main(String args[]) { double myCheck = 50.00; double yourCheck = 19.95; System.out.println("Tips are"); calcTip(myCheck); calctip(yourCheck); } public static int calcTip(int bill) { final double RATE = 0.15; tip = bill + RATE; System.out.println("The tip should be at least " + tip); } }
Step 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