Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This section involves programming tasks, as described below In a small company we have 4 hourly workers. Their wage rate is $10. Their pay depends

image text in transcribed

image text in transcribed

This section involves programming tasks, as described below In a small company we have 4 hourly workers. Their wage rate is $10. Their pay depends on how many hours they worked last week. We do provide overtime pay of 2 times of regular wage. Hours over 40 hours (not including 40) are considered overtime. Please write a program to calculate employees' pay of last week. The program should process all the records. Lucy Mary Nancy Olie 40 hours 45 hours 25 hours 35 hours 1. (4 points) Declare and initialize needed variables and arrays 2 (8 points) User a loop for user to enter working hours. Please use the data provided in the table to test and generate results 3. (8 points) Calculate each worker's pay of last week and output to screen in a table. Write a function called calEarn(hours) to carry out the calculation. The function has one parameter of hours worked and will return the amount of pay. 4. (8 points) Calculate average pay of last week. 5. (8 points) Find out the lowest pay of last week. Please show the worker's name and pay. 6. (4 points) In your program, please practice good programming habit by including comments Put your name and today's date as comments at the top of your program. Please output your name and today's date on your HTML page. Please include your name and today's date in your Word report

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

SQL For Data Science Data Cleaning Wrangling And Analytics With Relational Databases

Authors: Antonio Badia

1st Edition

3030575918, 978-3030575915

More Books

Students also viewed these Databases questions

Question

11. Are your speaking notes helpful and effective?

Answered: 1 week ago

Question

The Goals of Informative Speaking Topics for Informative

Answered: 1 week ago