Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

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.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

| Whom can I trust to help me make sure that I am living my values?

Answered: 1 week ago