Black Gold Oil Company accepts job trainees with pay. They want you to create a simple Payroll Application for the trainees. The program will accept trainee type, number of months, and number of days absent. If the trainee type is "Junior", then monthly rate is 50 OMR and absence fee is 2 OMR. Otherwise, monthly rate is 100 OMR and absence fee is 5 OMR. Gross pay is monthly rate multiplied by number of months. Deduction is absence fee multiplied by number of days absent. Partial pay is the difference of gross pay and deduction. If partial pay is greater than 300 OMR, bonus is 5% of the partial pay, otherwise bonus is 3% of the partial pay. Net pay is partial pay plus bonus. Display gross pay and net pay.

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter4: Making Decisions
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question
flowchart
Black Gold Oil Company accepts job trainees with pay. They want you to
create a simple Payroll Application for the trainees. The program will accept
trainee type, number of months, and number of days absent. If the trainee
type is "Junior", then monthly rate is 50 OMR and absence fee is 2 OMR.
Otherwise, monthly rate is 100 OMR and absence fee is 5 OMR. Gross pay is
monthly rate multiplied by number of months. Deduction is absence fee
multiplied by number of days absent. Partial pay is the difference of gross pay
and deduction.
If partial pay is greater than 300 OMR, bonus is 5% of the partial pay, otherwise
bonus is 3% of the partial pay. Net pay is partial pay plus bonus. Display gross
pay and net pay.
Transcribed Image Text:Black Gold Oil Company accepts job trainees with pay. They want you to create a simple Payroll Application for the trainees. The program will accept trainee type, number of months, and number of days absent. If the trainee type is "Junior", then monthly rate is 50 OMR and absence fee is 2 OMR. Otherwise, monthly rate is 100 OMR and absence fee is 5 OMR. Gross pay is monthly rate multiplied by number of months. Deduction is absence fee multiplied by number of days absent. Partial pay is the difference of gross pay and deduction. If partial pay is greater than 300 OMR, bonus is 5% of the partial pay, otherwise bonus is 3% of the partial pay. Net pay is partial pay plus bonus. Display gross pay and net pay.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
ListBox
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage