Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using for loop and break, Write and run a C program that will compute and output the average salary for employees. If the user entered

using for loop and break, image text in transcribed
Write and run a C program that will compute and output the average salary for employees. If the user entered the value of -1 for working hours, then the loop is terminated prematurely. Note that the user can enter at most 6 employees. You are supposed to use for loop. Sample Output Enter Employee #1 Working Hours: 20 Enter Employee #1 Pay Rate per Hour: 30 Employee #1 Salary = 600 Enter Employee #2 Working Hours: 8 Enter Employee #2 Pay Rate per Hour: 50 Employee #1 Salary = 400 Enter Employee #3 Working Hours: 34 Enter Employee #3 Pay Rate per Hour: 40 Employee #1 Salary 1360 = Enter Employee #4 Working Hours: -1 Employees Salary Average = 786.666687> 1

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

What are the best practices for managing a large software project?

Answered: 1 week ago

Question

How does clustering in unsupervised learning help in data analysis?

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago