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.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 20PE: When you borrow money to buy a house, a car, or for some other purpose, you repay the loan by making...
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning