Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 12th, 2006, 09:33 AM
Grish Grish is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Posts: 1 Grish User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 7 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old July 29th, 2006, 06:18 PM
Mittineague's Avatar
Mittineague Mittineague is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jul 2005
Location: West Springfield, Massachusetts
Posts: 549 Mittineague User rank is Private First Class (20 - 50 Reputation Level)Mittineague User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 1 Day 7 h 3 m
Reputation Power: 4
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,

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Need some programming help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT