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 : Minimum desks:
A kindergarten classroom sits maximum students at one desk. Given the number of kindergarten student enrolled,
write a python function named calculateminimumdesks to calculate the minimum number of desks required to sit
all the students. For example, for a class room with students, the call calculateminimumdesks must
return You are not allowed to use string operations here.
Do the following:
Write your algorithm as code comments. I recommend to follow UMPIRE technique points
Implement your function 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
noofdesks noofstudents
def calculateminimumdksksnoofstudents: # function definitionWrite your docstring and code below this line by replacing the three dots
def calculateminimumdesksnoofstudents:
noofdesks noofstudents overline
if
noofdesks
return noofdesks
def main: # Main programnoofstudents
prntcalculateminimumdesksnoofstudentsPrint only a call to your function below like in test case example above
noofstudents
printcalculateminimumdesksnoofstudents #Output: Print only a call to your function below like in test case example above
noofstudents
prntcalculateminimumdesksnoofstudents #Output: if name main : # Standard way of calling main program. This way you can import this code into a different progrmain
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
