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.
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](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F0be8880b-fd3c-45a1-a98e-015f359c16ba%2F893dc1c2-dd3a-4932-8219-b4577ab8e026%2Fd227ra_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 4 steps with 4 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)