Write a C program to determine the amounts payable by a company to those employees who participated in its Employee Education Program. An employee is reimbursed 70% of his total tuition on courses taken. For each employee, your program must read in and process the employee number (integer) and one or more costs pertaining to courses that he participated in – note that each course has one cost (tuition) associated with it. You do not know how many courses an employee was enrolled in. Therefore, after reading in a cost and processing it, your program must ask if there are any more costs. If the response is positive, then repeat the process for the next course. After all costs for an employee have been processed, output the employee number and the amount that the company owes him (70% of the total cost) before going on to process the courses for the next employee. You do not know how many employees participated in the program. Again, after processing one employee, your program must ask if there are more employees to be processed. While this response is positive, repeat the process described above. Your program must ensure that the responses to questions pertaining to more costs or more employees are valid. Also, these responses may be in either uppercase or lowercase.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Write a C program to determine the amounts payable by a company to those
employees who participated in its Employee Education Program. An employee is
reimbursed 70% of his total tuition on courses taken. For each employee, your
program must read in and process the employee number (integer) and one or more
costs pertaining to courses that he participated in – note that each course has one cost
(tuition) associated with it. You do not know how many courses an employee was
enrolled in. Therefore, after reading in a cost and processing it, your program must
ask if there are any more costs. If the response is positive, then repeat the process for
the next course. After all costs for an employee have been processed, output the
employee number and the amount that the company owes him (70% of the total cost)
before going on to process the courses for the next employee.
You do not know how many employees participated in the program. Again, after
processing one employee, your program must ask if there are more employees to be
processed. While this response is positive, repeat the process described above.
Your program must ensure that the responses to questions pertaining to more costs
or more employees are valid. Also, these responses may be in either uppercase or
lowercase.

Question 2 Continued
Execute your program with the following data:
2387
employee id
543.45
739.42
employee costs
86.34
723.34
employee id
employee costs
3745
345.32
653.56
2641
employee id
486.34
632.56
employee costs
498.34
Transcribed Image Text:Question 2 Continued Execute your program with the following data: 2387 employee id 543.45 739.42 employee costs 86.34 723.34 employee id employee costs 3745 345.32 653.56 2641 employee id 486.34 632.56 employee costs 498.34
Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY