Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What is wrong with the three lines of code? this is java on BlueJ Constructor for objects of class 03A3 public Q3A3 (int nl, int
What is wrong with the three lines of code? this is java on BlueJ
Constructor for objects of class 03A3 public Q3A3 (int nl, int n2, int n3) //declaring variables int weekday-n1;/umber of hours an employee has worked during the weekdays int overtime-n2;//the number of hours the employee has worked overtime during the weekdays int weekend-n3;// number of hours the employee has worked during the weekends //Calculating weekly salary int salary (weekday*18)+(overtime 15)+(weekend 20); / /Output information System.out.println("-- System.out.println(tNumber of regular hours worked on weekdays:ItitIt" +weekday ); System.out.print1n("(\tNumber of overtime hours worked on weekdays:ttt. + overtime +t).)i System.out.printin(tNumber of hours worked on weekends Ititltit" weekend"t") System.out.println("(tTotal Two Weeks Salary is:Itltitit" +salary t") System.out.println("(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