|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need some programming help
I was working on this problem and it was suggested that I create a program to solve it. I was wondering if i could get some help starting it, because it has me stumped.
Heres the problem: Situation Your school club is sponsoring a 2 day festival. You have 4 booths you need to staff with two students each on one hour shifts. Just for your convenience call the Students Tracy, Cara, Matt, Shumoni, Danika, Margaret, Craig and Katie Condition 1. Each student works each booth on the first day and again works each booth on the second day. 2. Over the 2 day period, (8 shifts) each student works with each of the other 7 students, repeating with another student only once. (From the original problem, the 4booths are red booth, blue booth, green booth, and yellow booth. Time shift is 10-11, 11-12,12-1,1-2) You're trying to find if there is a schedule that works or if it is impossible. Thanks in advance for any help. Grish |
|
#2
|
||||
|
||||
|
problem solving
Hi Grish, welcome to the forums,
In order to write a program for this, you need to figure out what logic to apply. There are 2 4-shift days, 4 booths each day, and 7 possible pairings per person. It may help to understand the problem by using a grid to visualize things. eg. SHIFT -- Booth 1 -- Booth 2 -- Booth 3 -- Booth 4 d1s1 --- A + B ----- C + D ---- E + F ---- G + H d1s2 --- G + F ----- H + E ---- C + B ---- D + A d1s3 --- C + E ----- B + H ---- D + F ---- A + G etc, etc, |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Java Development > Need some programming help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|