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
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