Java

Moderators: zibadian
Number of threads: 7836
Number of posts: 18235

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
please, i need help to solve this Posted by jmalux on 25 Jun 2009 at 8:11 AM
please can you help me out with this challenge. i have been battling with it for some days now and my turn in date is fast approaching. the qstn is as follows;

question 1
you are required to write a program as for Airline Reservation System, you are tp write a program to assign seats on each flight of the airline's only plane(capacity;10 seats)

your program should display the following menu;
please type 1 for "smoking"
please type 2 for "non-smoking"

if the person type 1, your program should assign a seat in smoking section(seat 1-5)
if the person type 2, your program should assign seat in non-smoking section(seat 6-10)

your program should then print a boarding pass indicating the person's seat number and whether it is in smoking or non-smoking section of the plane.

your should never assign a seat that has already been assigned, when the smoking section is full, your program should ask the person if it is acceptable to be placed in non-smoking section and vice versa. otherwise print a message "Next flight leaves in the next 3 hours".

question 2
write a program to transpose a 4X4 matrix i.e

1 2 3 4 1 5 9 13
5 6 7 8 becomes 2 6 10 14
9 10 11 12 3 7 1 15
13 14 15 16 4 8 12 16


Report
Re: please, i need help to solve this Posted by Aphillios on 20 Jul 2009 at 11:28 AM
Mate, nobody's going to help do your assignment (as this is what the above questions look like)

We will however help should you show that you've done a decent effort at trying to solve the above problems.
Report
Re: please, i need help to solve this Posted by arthipesa on 20 Jul 2009 at 1:19 PM
that's true mate, what's in it for us anyway? we're here to learn mate, not to do some assignments,..although it is challanging.. :D



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.