Question: Question 2 : Minimum desks: A kindergarten classroom sits maximum 4 students at one desk. Given the number of kindergarten student enrolled, write a python

Question 2: Minimum desks:
A kindergarten classroom sits maximum 4 students at one desk. Given the number of kindergarten student enrolled,
write a python function named calculate_minimum_desks to calculate the minimum number of desks required to sit
all the students. For example, for a class room with 27 students, the call calculate_minimum_desks(27) must
return 7. You are not allowed to use string operations here.
Do the following:
Write your algorithm as code comments. I recommend to follow UMPIRE technique (20 points)
Implement your function (60 points)
In your main program, test your function for the criteria given below. Note that this may be either fully or
"""."Import math module below
no_of_desks = no_of_students //4\
def calculate_minimum_dksks(no_of_students): # function definitionWrite your docstring and code below this line by replacing the three dots (...)
def calculate_minimum_desks(no_of_students):
no_of_desks = no_of_students //\overline{4}
if
no__of_desks +=1
return no_of_desks
def main(): # Main programno_of_students =23
prnt(calculate_minimum_desks(no_of_students))Print only a call to your function below like in test case 1 example above
no_of_students =27
print(-(calculate_minimum_desks(no_of_students)) #Output: 7Print only a call to your function below like in test case 1 example above
no_of_students =23
prnt(calculate_minimum_desks(no_of_students)) #Output: 6if name=" main ": # Standard way of calling main() program. This way you can import this code into a different progrmain()
Question 2 : Minimum desks: A kindergarten

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 Programming Questions!