Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

CSBP 221 – Programming Lab II Lab#04 Objective and Overview Lab Marks: out of 20 · Problem solving · Read and analyses an exercise or problem. · Extract important information that will be used to...

1 answer below »
CSBP 221 – Programming Lab II
Lab#04
    
    Objective and Overview
    Lab Marks: out of 20
    · Problem solving
· Read and analyses an exercise or problem.
· Extract important information that will be used to create a class with all its needed attributes, and methods.
· Testing java Classes using GUI.
    Grading Rules
    Group Submission
    · You have to solve all the exercises of each Lab.
    · Code free of any syntax e
or: 20%
    (4 marks from 20)
    · Code runs and free of any runtime e
ors: 10%
    (2 marks from 20)
    · Code naming conventions shall be respected (variable names, formatting …). 10%
    (2 marks from 20)
    · Your code should be tidy and commented (well formatted). 10%
    (2 marks from 20)
    · Your code works and gives the expected results or solution. 50%
    (10 marks from 20)
    Submission Rules
    · Zip your Project and submit using link provided in Blackboard.
· The deadline is well displayed when you click on the submission link.
· Any late submission will reduce your grade.
· You have always between 5 days and 1 week deadline depending on the Lab.
    
    Using GUI , write a java program that shall solve the following problem:
A Small supermarket employs workers who are paid every end of week. According to the one of the three hourly rates depending on their positions.
    Position
    Hours rate (dirham)
    Admin A1
    60
    Worker P1
    40
    Worker P2
    30
Each worker might work any number of hours per week; any hour over 40 are paid at one and half rate. In addition workers in position A1 and P1 can choose to participate in the following inssurance options:
    Option
    Explanation
    Weekly Cost to Employee (dirham)
    I1
    Medical Insurance
    80
    I2
    Dental Insurance
    50
    I3
    Disability Insurance
    30
    Position
    I1
    I2
    I3
    Retirement (3%)
    Admin A1
    Y
    Y
    Y
    Y
    Worker P1
    Y
    Y
    Y
    N
    Worker P2
    N
    N
    N
    N
Also, the worker Admin in position A1 can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarize who is authorized to participate in insurance and retirement plans
Write an interactive Java payroll application that calculates the net pay for a worker. The program prompts the user for: skill level and hours worked, as well as appropriate insurance and retirement options for the worker’s position.
The application displays: 1) hours worked, 2) hourly rate, 3) regular pay for 40 hours, 4) overtime pay, 5) total pay, 6) total deductions, 7) the net pay (total pay – total deductions).
Sample output:

    CSBP 221 – Programming Lab II
Lab#04
    
    Objective and Overview
    Lab Marks: out of 20
    · Problem solving
· Read and analyses an exercise or problem.
· Extract important information that will be used to create a class with all its needed attributes, and methods.
· Testing java Classes using GUI.
    Grading Rules
    Group Submission
    · You have to solve all the exercises of each Lab.
    · Code free of any syntax e
or: 20%
    (4 marks from 20)
    · Code runs and free of any runtime e
ors: 10%
    (2 marks from 20)
    · Code naming conventions shall be respected (variable names, formatting …). 10%
    (2 marks from 20)
    · Your code should be tidy and commented (well formatted). 10%
    (2 marks from 20)
    · Your code works and gives the expected results or solution. 50%
    (10 marks from 20)
    Submission Rules
    · Zip your Project and submit using link provided in Blackboard.
· The deadline is well displayed when you click on the submission link.
· Any late submission will reduce your grade.
· You have always between 5 days and 1 week deadline depending on the Lab.
    
    Using GUI , write a java program that shall solve the following problem:
A Small supermarket employs workers who are paid every end of week. According to the one of the three hourly rates depending on their positions.
    Position
    Hours rate (dirham)
    Admin A1
    60
    Worker P1
    40
    Worker P2
    30
Each worker might work any number of hours per week; any hour over 40 are paid at one and half rate. In addition workers in position A1 and P1 can choose to participate in the following inssurance options:
    Option
    Explanation
    Weekly Cost to Employee (dirham)
    I1
    Medical Insurance
    80
    I2
    Dental Insurance
    50
    I3
    Disability Insurance
    30
    Position
    I1
    I2
    I3
    Retirement (3%)
    Admin A1
    Y
    Y
    Y
    Y
    Worker P1
    Y
    Y
    Y
    N
    Worker P2
    N
    N
    N
    N
Also, the worker Admin in position A1 can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarize who is authorized to participate in insurance and retirement plans
Write an interactive Java payroll application that calculates the net pay for a worker. The program prompts the user for: skill level and hours worked, as well as appropriate insurance and retirement options for the worker’s position.
The application displays: 1) hours worked, 2) hourly rate, 3) regular pay for 40 hours, 4) overtime pay, 5) total pay, 6) total deductions, 7) the net pay (total pay – total deductions).
Sample output:

    CSBP 221 – Programming Lab II
Lab#03
    
    Objective and Overview
    Lab Marks: out of 20
    · Problem solving and analytical thinking.
· Read and analyses an exercise or problem.
· Extract important information that will be used to create a class with all its components: classes, attributes, and methods.
·
    Grading Rules
    Group Submission
    · You have to solve all the exercises of each Lab.
    · Code free of any syntax e
or: 20%
    (4 marks from 20)
    · Code runs and free of any runtime e
ors: 10%
    (2 marks from 20)
    · Code naming conventions shall be respected (variable names, formatting …). 10%
    (2 marks from 20)
    · Your code should be tidy and commented (well formatted). 10%
    (2 marks from 20)
    · Your code works and gives the expected results or solution. 50%
    (10 marks from 20)
    Submission Rules
    · Zip your Project and submit using link provided in Blackboard.
· The deadline is well displayed when you click on the submission link.
· Any late submission will reduce your grade.
· You have always between 5 days and 1 week deadline depending on the Lab.
    
    Write a java program that shall solve the following problem:
A Small supermarket employs workers who are paid every end of week. According to the one of the three hourly rates depending on their positions.
    Position
    Hours rate (dirham)
    Admin A1
    60
    Worker P1
    40
    Worker P2
    30
Each worker might work any number of hours per week; any hour over 40 are paid at one and half rate. In addition workers in position A1 and P1 can choose to participate in the following insurance options:
    Option
    Explanation
    Weekly Cost to Employee (dirham)
    I1
    Medical Insurance
    80
    I2
    Dental Insurance
    50
    I3
    Disability Insurance
    30
    Position
    I1
    I2
    I3
    Retirement (3%)
    Admin A1
    Y
    Y
    Y
    Y
    Worker P1
    Y
    Y
    Y
    N
    Worker P2
    N
    N
    N
    N
Also, the worker Admin in position A1 can choose to participate in the retirement plan at 3.0% of their gross pay. The following table summarize who is authorized to participate in insurance and retirement plans
Write an interactive Java payroll application that calculates the net pay for a worker. The program prompts the user for: skill level and hours worked, as well as appropriate insurance and retirement options for the worker’s position.
The application displays: 1) hours worked, 2) hourly rate, 3) regular pay for 40 hours, 4) overtime pay, 5) total pay, 6) total deductions, 7) the net pay (total pay – total deductions).
Note: Use your analytical thinking and create the required classes and methods to build this program.
Answered 1 days After Oct 07, 2021

Solution

Ravindra Kumar answered on Oct 09 2021
139 Votes
EmployeePayroleSystem/.classpath

    
    
    
    
EmployeePayroleSystem/.project

     EmployeePayroleSystem
    
    
    
    
        
             org.eclipse.jdt.core.javabuilde
            
            
        
        
             org.eclipse.xtext.ui.shared.xtextBuilde
            
            
        
    
    
         org.eclipse.xtext.ui.shared.xtextNature
         org.eclipse.jdt.core.javanature
    
EmployeePayroleSystem/.settings/org.eclipse.jdt.core.prefs
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=e
o
org.eclipse.jdt.core.compiler.problem.enumIdentifier=e
o
org.eclipse.jdt.core.compiler.source=1.8
EmployeePayroleSystem
in/application/application.css
* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property *
EmployeePayroleSystem
in/application/EemployeePayroleController.class
package application;
public synchronized class EemployeePayroleController implements javafx.fxml.Initializable {
private javafx.scene.control.Label myLabel;
private javafx.scene.control.ChoiceBox myChoicebox;
private String[] position;
public void EemployeePayroleController();
public void initialize(java.net.URL, java.util.ResourceBundle);
public void getPosition(javafx.event.ActionEvent);
}
EmployeePayroleSystem
in/application/EemployeePayroleGUI.fxml




































































...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here