Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

9. System creates a large, diverse talent pool.

Answered: 1 week ago