Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need the answer in java and an explanation of the code. EYESCRIPTION Create a Babysitting ob dass for a babysitting service. The dass contains
I need the answer in java and an explanation of the code.
EYESCRIPTION Create a Babysitting ob dass for a babysitting service. The dass contains fields to hold the following A String that contains a job identification Job identifications are the year plus a number (starting at the first ob Identification will be 2017. The next job identification will be 20172 An that represents the employee assigned to me the code will always be 1, 2. on 3 WAS TOT may 21stet e 3.stor Margia The number idren as ant that need to be watched The number of hours n the job as an int The fee for the Cindy is paid 58 Der hour per child, Greg is paid sio per nour for the first child and $4 per hour ser additional chila Marcia is bad 12 per bout for the first child plus 55 extra per hour per child Calculate the cost for the job as an int Create a method that in the total cost for the job returnee Main.java import java.util.Scanner: public class Babysitting ob public Babysitting Job(String jobid, int nunchildren, int babysitterid, Int numHours) { 8 9 public int returnee 12 12 15 public String toString(X return Job ID babySittertlane.. totalfee; 17 13 19 20 2 22 23 public static void main(String[] args) Scanner s = new Scanner(System. In Babysitting job first - ne Babysittingjob(s.next(). s.nextInt(), 5.nextInt(). 5.nextInt(); System.out.print in first return()); Babysitting Job second = new Babysitting Job(s.next. s.nextInt(). 3.nextInt() 5.nextInt()) System.out.println (second returne): Babysitting job third-ne BabysittingJob(s.next().s.nextInt(). 3.nextInt( .nextInt() System.out.println(third returnee) 26 30 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