aspose file tools*
The moose likes Programming Diversions and the fly likes Summer Jobs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Other » Programming Diversions
Bookmark "Summer Jobs" Watch "Summer Jobs" New topic
Author

Summer Jobs

Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
Dont know whether this was posted before

This summer, five friends each found a different job to earn money. As it happened, they all started their new jobs in the same week; each on a different day and each earning a different amount. Determine the type of job each got, the day of the week each started working, each friend�s mode of transportation to their new job, and how much per hour each friend was earning.

1. Chris didn�t have a newspaper route but he did use the bus. The boy who mowed lawns took the train to work.

2. The boy who used a bicycle started working on Friday. Joe didn�t get a job as a painter.

3. The five friends are represented, in no particular order, by the following: the boy who made $6.00 per hour, the boy who started work on Thursday, the boy who used a car to get to work, Chris, and the boy who mowed lawns.

4. Peter started work the day before the boy who worked as a cashier but two days after the boy who made $7.00 per hour. The boy who worked as a cashier made $0.50 per hour more than Greg made.

5. The boy who started work on Tuesday made $6.25 per hour. Rob didn�t start work on Monday. Peter made more per hour than the painter but less than the boy who used a car.

6. Rob walked to work. The person who started on Wednesday didn�t make $6.50 per hour. The golf caddy used a car to get to work.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
As it happened, they all started their new jobs in the same week; each on a different day and each earning a different amount.


Does this also apply to the type of job and the mode of transportation?


Java API Documentation
The Java Tutorial
Sameer Jamal
Ranch Hand

Joined: Feb 16, 2001
Posts: 1870
Originally posted by Layne Lund:

Does this also apply to the type of job and the mode of transportation?


Yes
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
Well, since noone else seems to want to answer, here is what I got


[ August 17, 2005: Message edited by: Timmy Marks ]
Rick Beaver
Ranch Hand

Joined: Dec 14, 2004
Posts: 464
OK so can someone code an engine to work this out given a series of facts?


ph34r my 133t j4v4 h4><0r1ng sk177z
Timmy Marks
Ranch Hand

Joined: Dec 01, 2003
Posts: 226
I thought that had already been done. Can't Jess solve a puzzle like this?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Summer Jobs