Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please code in C!! (From the textbook ch-2) Programming Exercise 12 Design a new type called payroll.. and Exercise 13 Write a Program that
Please code in C!!
(From the textbook ch-2) Programming Exercise 12 "Design a new type called payroll.. " and Exercise 13 Write a Program that generates the weekly payroll..." In case you don't have the textbook, here are the problems (You can implement both in the same program, No need for two separate programs) 12. Design a new type called payrollT that is capable of holding the data for a list of employees, each of which is represented using the employeeT type introduced in the section on "Dynamic records at the end of the chapter. The type payrol1T should be a pointer type whose underlying value is a record containing the number of employees and a dynamic array of the actual employeeT values, as illustrated by the following data diagram: nEmployees employees Ebene er Scroogc Bob Cratchit array of employeeT Clerk 271-82-8183 250.0O After writing the types that define this data structure, write a function GetPayroll that reads in a list of employees, as shown in the following sample run: How many employees: 2 Employee i 1 Name: Ebenezer Scrooge Title: Partner SSNum: 271-82-8183 Salary: 250.00 Withholding exemptionsi 1 Employee #21 Name: Bob Cratchit Title: Clerk SSNum: 314-15-9265 Salary: 15.00 Withholding exemptions: 7Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started