Win a copy of The Java Performance Companion this week in the Performance forum!

# math prob: someone plz. answer

Vikrama Sanjeeva
Ranch Hand
Posts: 760
Hi,

I am stuck to one problem...

Problem:

To enroll 300 students for 10 courses, 4 hrs is required. How mucg time is required to enroll X students for Y courses

Bye,
Viki.

Jason Menard
Sheriff
Posts: 6450
Moved to Programming Diversions.

Ryan McGuire
Ranch Hand
Posts: 1068
4
Originally posted by Vikrama Sanjeeva:
To enroll 300 students for 10 courses, 4 hrs is required. How mucg time is required to enroll X students for Y courses

Assumption: Registering one student for one course is the basic unit of work. So registering one student for ten courses takes the same time as registering ten students for one course each.

300 students x 10 courses for each = 3000 studentCourses
3000 studentCourse / 4 hours = 750 studentCourse/hour
For any number of courses and students, just divide by this work rate.

Time needed = X x Y / 750 studentCourses/hour

Ryan

Arjunkumar Shastry
Ranch Hand
Posts: 986
I got 2*X*Y/25 minutes.

Ryan McGuire
Ranch Hand
Posts: 1068
4
Originally posted by Arjunkumar Shastry:
I got 2*X*Y/25 minutes.

That's what I said. (2XY/25)minutes == (XY/750)hours

edit:
And that would have clearer if I used more parentheses. I shoudl have said...

Time needed = X x Y / (750 studentCourses/hour)

...which reduces to (XY hours)/(750 Student*Courses)
...or if you leave out the student and course units... (XY/750) hours

Ryan
[ April 14, 2005: Message edited by: Ryan McGuire ]

Vikrama Sanjeeva
Ranch Hand
Posts: 760
Hi,

Thank you guyz

Bye,
Viki.