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
icon
Related questions
Question

C-programing 

*** 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
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.
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
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Introduction to computer system
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
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education