Thread Subject: I'm still new in using matlab.... can't anyone help me...

Subject: I'm still new in using matlab.... can't anyone help me...

From: Ali

Date: 6 Apr, 2009 08:59:01

Message: 1 of 2

A small bus company has just purchased a computer for its new automated reservations system.The owner of the company has asked you to program the new system.You are to write a program to assign seats on each bus with capacity of 40 seats.You program should display the following menu of alternatives.

Please type 1 for “VIP seat”
Please type 2 for “economy seat’

If the person types 1,then your program should assign a VIP seat section (seat 1-26).If the person types 2,then your program should assign a seat in the economy section(seat 27-40).Your program should then print a ticket including the passenger seat class and the seat number on the same ticket.

Use a single-subscripted array to represent the seating chart of the bus.Initialize all the elements of the array to 0 to indicate that all seats are empty.As each seat is assigned,set the corresponding elements of the array to 1 indicate that the seat is no longer available.


Your program should never assign a seat that has already been assigned.Your program also has to show the message “VIP seat SOLD OUT” if seat in VIP class is full and the message “economy seat SOLD OUT” if seat in economy class is full.

my friend and I have try answered the question above,but our lecturer said that our programming is wrong..please...please help us..

Subject: I'm still new in using matlab.... can't anyone help me...

From: Ulf Graewe

Date: 6 Apr, 2009 09:28:01

Message: 2 of 2

It doesn't help if you post the old problem in a new threat.

Like Gavrilo recently posted:
If you are stuck or you need some advice, formulate whats your problem. Show a piece of code with the error message you get!
Then you will find for sure some help in this forum.

But don't be so lazy and cry for help, without saying how we can help you or even let us puzzle out what might the solution for your problem!

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
barrel Steve Amphlett 6 Apr, 2009 05:33:55
shooting Steve Amphlett 6 Apr, 2009 05:33:55
fish Steve Amphlett 6 Apr, 2009 05:33:55
homework Ulf Graewe 6 Apr, 2009 05:30:21
matlab Ali 6 Apr, 2009 05:03:23
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com