Please use blue J IDEThis is your first object-oriented prog

You Are Eligible For 15% Discount This Month!

Please use blue J IDEThis is your first object-oriented program, so we are very detailed with therequirements. In later programs, we will be leaving a lot of the design toyou.You will create a Java application that is used to determine a pay check anddisplay the net pay and its details on the screen.PayCheck Classfields: hourlyRate, hoursWorked, grossPay, netPay, federalTaxAmount,stateTaxAmount, FICAAmount, lastName, firstNameconstants: FEDERAL_TAX_RATE, STATE_TAX_RATE, FICA_RATE.It is up to you to choose the appropriate data type for each field.no-args constructor which sets the numeric fields to 0 and the names to“unknown” and the tax constants to : 0.15, 0.09 and 0.07 a second constructor (overloaded) which allows the user to set the initialvalues of the fields (including the constants). Do not be concerned if thedriver will not use this constructor. Methods:setLastName( ) setFirstName ( )setHourlyRate( ) – do data validation, do not accept any values less than 5 orgreater than 100.setHoursWorked( ) –do not accept any value less than 0or greater than 80If the values are out of range, do not change the field values from theircurrent values. You will be marked off if you do not do this data validation.get( ) methods for each of the fields (except the constants)a toString( ) method that returns a textual representation of the state of theobject. This method will be called in the Driver class from a print( )statement.Driver class:This class will have no fields, only local variables in the main( ) method.It will have the main( ) method only. The main( ) method will create an instance of PayCheck class using the noargsconstructor. Then, in a loop:Prompt the user for a last name, and first name.Prompt the user to enter hours worked and hourly pay rate. Call the appropriate set ( ) methods. Use the toString( ) method of the PayCheck class to display: Last Name, First Name, Gross Pay, Federal Tax, State Tax, FICA, Net PayBe sure to format the output with labels and two decimal places for dollaramounts. The output must be clear to the user of the program. Loop until the user decides to not enter any more employee information.If the code does not compile and run from main( ) a grade of zero isassigned. For documentation (20 pts), use inline comments, implicit documentation,block comments and Javadoc comments about each method. The flowerboxfor each class must include the name of the file, your name, the date and adescription of what the class is used for.

Our Prices Start at $11.99. As A First Time Client, You Are Eligible For 15% Discount This Month!

Get The Answer Here
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *