Question: C program: Create an array of 30 random numbers from 16 to 30 Use a loop (for or while) to go through your array. Use

C program:

Create an array of 30 random numbers from 16 to 30

Use a loop (for or while) to go through your array. Use if statement(s) inside your loop to adjust the customers per day

If the number of costumers is greater than 25, set the number of customers to 25 and put the rest of the customers in a variable to use later. These will be people we need to reschedule for later.

If the number of costumers is less than 25, check if there are customers who need rescheduling. If there are, move customers from the reschedule variable to the current array's day value.

Print out how many customers ended the three week period needing to be rescheduled and were not able to be scheduled.

Use a loop (for or while) to go through your array and determine the number of days which now are:

at 25 customers

less than 25 customers

Print out the percentage of how many days out of the 30 are maxed out

Print out the percentage of how many days out of the 30 are less than the max

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!