Student/TA Ratio in a Class
Specification
- Input:
- Number of Students
- Number of TAs
Special requirement: Use "simultaneous assignment" to get input
from the user.
<variable1>,<variable2> =
eval(input("msg"))
- Output:
The average minutes that a TA can spend on each student.
- Relationship: average = ta * 50 * 3 / student
The program may run as follows:
============
This program calculates the average TA time shared by students.
Please input the number of students, and TAs, separated by a comma(,) -- 40,2
In average, each TA can spend 7.5 minutes on a student.
============
This program calculates the average TA time shared by students.
Please input the number of students, and TAs, separated by a comma(,) -- 30,2
In average, each TA can spend 10.0 minutes on a student.
============
This program calculates the average TA time shared by students.
Please input the number of students, and TAs, separated by a comma(,) -- 30, 4
In average, each TA can spend 20.0 minutes on a student.