Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Class name :staff member variables: staffID,staffName,level,no of hours worked Member functions: Constructors-as per your choice Add staff information calculate salary of staff based on the
Class name :staff
member variables: staffID,staffName,level,no of hours worked
Member functions:
Constructors-as per your choice
Add staff information
calculate salary of staff based on the level entered and the number of hours worked.
Rules for calculating salary:
level 1-hourly rate =18
level 2-hourly rate =25
level 2-hourly rate =50
level 4-hourly rate= 100
Display staff information along with salary.
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