Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program to calculate the total salary of the employees in an office. The program will first prompt the user to enter the number
Write a program to calculate the total salary of the employees in an office. The program will first prompt the user to enter the number of employees. For each employees, the program asks the user to enter the pay rate and hours worked. The following is a sample run:
Enter the number of employees: 3 Enter the number of hours worked for employee 1: 10 Enter the pay rate per hour: 25.5 Pay for employee 1: $255.0 Enter the number of hours worked for employee 2: 20 Enter the pay rate per hour: 15 Pay for employee 2: $300.0 Enter the number of hours worked for employee 3: 30 Enter the pay rate per hour: 20.5 Pay for employee 3: $615.0 Total pay: $1170.0Step 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