Programming Challenge: 13 - Days Out C++ please note the instructor's directions below Implement the functions exactly a

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Programming Challenge: 13 - Days Out C++ please note the instructor's directions below Implement the functions exactly a

Post by answerhappygod »

Programming Challenge: 13 - Days Out C++ please note theinstructor's directions below
Implement the functions exactly as specified.
The average number of days out should show exactly two digitsafter the decimal point.
Number of Employees: -1 (should be rejected, try again)
Programming Challenge 13 Days Out C Please Note The Instructor S Directions Below Implement The Functions Exactly A 1
Programming Challenge 13 Days Out C Please Note The Instructor S Directions Below Implement The Functions Exactly A 1 (129.28 KiB) Viewed 35 times
13. Days Out Write a program that calculates the average number of days a company's employees are absent. The program should have the following functions: • A function called by main that asks the user for the number of employees in the company. This value should be returned as an int. (The function accepts no argu- ments.) • A function called by main that accepts one argument: the number of employees in the company. The function should ask the user to enter the number of days each employee missed during the past year. The total of these days should be returned as an int. • A function called by main that takes two arguments: the number of employees in the company and the total number of days absent for all employees during the year. The function should return, as a double, the average number of days absent. (This function does not perform screen output and does not ask the user for input.) Input Validation: Do not accept a number less than 1 for the number of employees. Do not accept a negative number for the days any employee missed.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply