The Artima Developer Community
Sponsored Link

Java Answers Forum
please help me with my project in turbo c or java.

1 reply on 1 page. Most recent reply: Feb 18, 2010 11:15 PM by alexis mercado

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
alexis mercado

Posts: 2
Nickname: o8alexis8o
Registered: Feb, 2010

please help me with my project in turbo c or java. Posted: Feb 16, 2010 1:51 AM
Reply to this message Reply
Advertisement
i have a project in turbo c programming and this is the problem .. please help me by giving some source code in turbo c or java. but my knowledge in java is on java.io only .


Write a program that will assign passenger seats in an airplane. Assume a small airplane with seat numbering as follows:
1. A B C D
2. A B C D
3. A B C D
4. A B C D
5. A B C D
6. A B C D
7. A B C D

The program should display the seat pattern with an "X" marking the seats already assigned. For example, after the seats 1A, 2B and 4C are taken. The display should look like this:

1. X B C D
2. A X C D
3. A B C D
4. A B X D
5. A B C D
6. A B C D
7. A B C D

After displaying the seats available the programming prompts for the seats desired the user types in a seat, and then the display of available seats is updated. this continues until all seats are field or until the user signals that the program should end. If the user types in a seat is already assigned, the program should say that seat is occupied and ask for another choice .


alexis mercado

Posts: 2
Nickname: o8alexis8o
Registered: Feb, 2010

Re: please help me with my project in turbo c or java. Posted: Feb 18, 2010 11:15 PM
Reply to this message Reply
this is a two dimensional array in turbo c ..
it is so hard !!
damn !

Flat View: This topic has 1 reply on 1 page
Topic: Eckel thinking in Jave - 4 Previous Topic   Next Topic Topic: dealing with large ArrayLists

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use