loyees consisting of the employee's name, ID, A mini mart named ARC-Grocery wants to have a computerized system to calculate and print payroll information of its employees. Write a C payroll program for the mini mart owner. Your program should perform the following tasks: a. The program will read the data of the hours worked and rate of pay. b. Your program will display the payroll information of employees onto the screen. c. Besides function main (), the program needs to define THREE (3) other functions as described in Table 1. You should use appropriate arguments for each function. d. Figure I shows an example run of the program with the keyboard inputs. UT 5 UTM Table 1: Function and function description. Function UTM getData () Description To get the data of the employees from the keyboard. Ask the employee for the following input: i. Name and employee ID no. ii. Hours worked UTM 8 UT TMTM UT 5 UTM UTM & UTM calculatePayroll () To calculate the regular pays, overtime pays and total pays of Rate of pay 8 UTM S UTM 8 UTM 8 UTM 8 UTM UTM UT the employee. For each employee, the calculation is done as follows: i. Regular pay = hour x rate UTM UTM UTM 8 UTM UT AUTM 8 UTM worked exceeds 40 hours and calculated based on: a MAUTM 5 UTM E UTM 8 UTM iii. Total pay UTM 8 UTM summaryPayroll () UTM Uate 8 UTM /UT To print the payroll information of the employees onto the TM & UTM screen. Refer to sample of output in Figure 2.
loyees consisting of the employee's name, ID, A mini mart named ARC-Grocery wants to have a computerized system to calculate and print payroll information of its employees. Write a C payroll program for the mini mart owner. Your program should perform the following tasks: a. The program will read the data of the hours worked and rate of pay. b. Your program will display the payroll information of employees onto the screen. c. Besides function main (), the program needs to define THREE (3) other functions as described in Table 1. You should use appropriate arguments for each function. d. Figure I shows an example run of the program with the keyboard inputs. UT 5 UTM Table 1: Function and function description. Function UTM getData () Description To get the data of the employees from the keyboard. Ask the employee for the following input: i. Name and employee ID no. ii. Hours worked UTM 8 UT TMTM UT 5 UTM UTM & UTM calculatePayroll () To calculate the regular pays, overtime pays and total pays of Rate of pay 8 UTM S UTM 8 UTM 8 UTM 8 UTM UTM UT the employee. For each employee, the calculation is done as follows: i. Regular pay = hour x rate UTM UTM UTM 8 UTM UT AUTM 8 UTM worked exceeds 40 hours and calculated based on: a MAUTM 5 UTM E UTM 8 UTM iii. Total pay UTM 8 UTM summaryPayroll () UTM Uate 8 UTM /UT To print the payroll information of the employees onto the TM & UTM screen. Refer to sample of output in Figure 2.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
C-
![*** Payroll Program for ARC-Grocery***
Employee name: Hanisah
Employee ID: 0001
Hours worked: 45
Payroll Final Report
5 UTM & UTM 8 UTM
ID
000JTMHOURSS
45
T UTM
120
RATE (RM)
8 UTM UT
UTM
UTM
Total salary: RM142.50
OVERTIME (RM)
6 22.5
TOTAL
UTM
SUTM UTM S UTM
Figure 1: Example of Output screen
142. 50 RM) UT
TM
UTM UTM & UTM
UTM UT
ITM](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6a30be74-a81e-4985-b94d-4cd71e619e2d%2F3bc9be6c-b69d-4c19-a2c8-5606caed15cf%2Fhcajhh9_processed.jpeg&w=3840&q=75)
Transcribed Image Text:*** Payroll Program for ARC-Grocery***
Employee name: Hanisah
Employee ID: 0001
Hours worked: 45
Payroll Final Report
5 UTM & UTM 8 UTM
ID
000JTMHOURSS
45
T UTM
120
RATE (RM)
8 UTM UT
UTM
UTM
Total salary: RM142.50
OVERTIME (RM)
6 22.5
TOTAL
UTM
SUTM UTM S UTM
Figure 1: Example of Output screen
142. 50 RM) UT
TM
UTM UTM & UTM
UTM UT
ITM
![caleeUM¥roll () To calculate the regular pays, overtime pays and total pays of
the employee. For each employee, the calculation is done a
Description
A mini mart named ARC-Grocery wants to have a computerized system to calculate and print
payroll information of its employees. Write a C payroll program for the mini mart owner.
Your program should perform the following tasks:
a. The program will read the data of the employees consisting of the employee's name, ID,
hours worked and rate of pay.
b. Your program will display the payroll information of employees onto the screen.
e. Besides function main (), the program needs to define THREE (3) other functions as
described in Table 1. You should use appropriate arguments for each function.
d. Figure I shows an example run of the program with the keyboard inputs.
5 UTM
8 UT
UTM
1: Function and function description.
Function
UTM
get Data ()
TMTM
5 UTM 5 UT
To gét the data of the employees from the keyboard. Ask the
employee for the following input:
i. Name and employee ID no.
TMTM
UT
3 UTM UTM S UTM
ii.
Hours worked
iii.
Rate of pay
8 UTM 8 UTM UTM
5 UTM
& UTM /UT
follows:
i. Regular pay = hour x rate
as
5 UTM & UTM 8 UTM
& UTM UT
5 UTM 8 UTM
worked exceeds 40 hours and calculated based on:
M UTM
8 UTM 8 UTM S UTM
s UTM
ITM S UTM
summaryPayroll ()
iii.
Total pay
5 UTM UT
UTM 8 UTM
screen. Refer to sample of output in Figure 2.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6a30be74-a81e-4985-b94d-4cd71e619e2d%2F3bc9be6c-b69d-4c19-a2c8-5606caed15cf%2F9tn6ked_processed.jpeg&w=3840&q=75)
Transcribed Image Text:caleeUM¥roll () To calculate the regular pays, overtime pays and total pays of
the employee. For each employee, the calculation is done a
Description
A mini mart named ARC-Grocery wants to have a computerized system to calculate and print
payroll information of its employees. Write a C payroll program for the mini mart owner.
Your program should perform the following tasks:
a. The program will read the data of the employees consisting of the employee's name, ID,
hours worked and rate of pay.
b. Your program will display the payroll information of employees onto the screen.
e. Besides function main (), the program needs to define THREE (3) other functions as
described in Table 1. You should use appropriate arguments for each function.
d. Figure I shows an example run of the program with the keyboard inputs.
5 UTM
8 UT
UTM
1: Function and function description.
Function
UTM
get Data ()
TMTM
5 UTM 5 UT
To gét the data of the employees from the keyboard. Ask the
employee for the following input:
i. Name and employee ID no.
TMTM
UT
3 UTM UTM S UTM
ii.
Hours worked
iii.
Rate of pay
8 UTM 8 UTM UTM
5 UTM
& UTM /UT
follows:
i. Regular pay = hour x rate
as
5 UTM & UTM 8 UTM
& UTM UT
5 UTM 8 UTM
worked exceeds 40 hours and calculated based on:
M UTM
8 UTM 8 UTM S UTM
s UTM
ITM S UTM
summaryPayroll ()
iii.
Total pay
5 UTM UT
UTM 8 UTM
screen. Refer to sample of output in Figure 2.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education