I'm having trouble writing a simple Python program for a beginner programming class. If someone could look at the code I currently have and guide me in the right direction it would be much appreciated! Here is the code:
A program that helps fulfil nurse to patient staffing needs
def main():
print 'Welcome to the PACU nurse to patient program'
print
patients = inputPatients()
nurses = getNurses(patients)
nurseAssistants = getAssistants(nurses)
printInfo = (patients, nurses, nurseAssistants)
raw_input()
def inputPatients():
patients = input('Enter the number of patients for this shift (up to 40): ')
return patients
def getNurses(patients):
nurses = (1.0 / 3.0) * patients
return nurses
def getAssistants(nurses):
nurseAssistants = (1.0 / 2.0) * nurses
return nurseAssistants
def printInfo(patients, nurses, nurseAssistants):
print 'The number of patients for this shift is:', patients
print 'The number of nurses needed is:', nurses
print 'The number of nurses Assistants is:', nurseAssistants
main()
2.5assistants for15patients? :P