Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

Data Structures and Algorithms in Java

Thread view: 
kiamkhai@oum.edu.my - 14 Jan 2006 13:20 GMT
How to write a program that can simiulate a car-parking garage that can

handle unlimited number of cars. The garage is very narrow such that
its' width can accomodate only one car. There is only one entry point
to the garage at one of its end where the car can be parked or taken
out of the garage. Your car parking garage consists of two garages
where only one of the garage is used as the parking area. The other
garage is used as temporary area for the other cars that is blocking
the car that need to move out. The other cars moved to the temporary
garage will be stored back to the main garage once the intended car is
taken out.

Input file:

A,ABA1234
A,ABC6789
-
-
D,ABC6789
A,ZXC2345
-
A,QWE3456
-
D,ZXC2345
-
-
X

Each line of input represent 1 minute of time. The input file will
consist of 60 lines and will be terminated by an marker X.
Luke Webber - 14 Jan 2006 13:44 GMT
First, don't multipost. It's not polite, and it wastes people's time.

Second, why should we waste our time solving non-existent problems. The
garage you describe can't possibly exist, except in your teacher's mind.
Hopefully, the solution exists in the same space. So ask your teacher
for the solution, because nobody here is going to do your homework for you.

Luke

> How to write a program that can simiulate a car-parking garage that can
>
[quoted text clipped - 26 lines]
> Each line of input represent 1 minute of time. The input file will
> consist of 60 lines and will be terminated by an marker X.
Chris Smith - 14 Jan 2006 17:46 GMT
> Second, why should we waste our time solving non-existent problems. The
> garage you describe can't possibly exist, except in your teacher's mind.
> Hopefully, the solution exists in the same space. So ask your teacher
> for the solution, because nobody here is going to do your homework for you.

On the other hand, someone here might help with any problems in
understanding that are preventing you from completing your homework.  
It's your job, though, to identify what those problems are and ask for
specific help.  As a rule of thumb, if your question has the word "car"
or "garage" in it, you haven't done the job yet.

If you really just have no clue how to get started, then talking to your
teacher/professor is the way to go.

Signature

www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Roedy Green - 14 Jan 2006 20:28 GMT
>How to write a program that can simiulate a car-parking garage that can

see http://mindprod.com/jgloss/homework.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.