VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

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

Report
I NEED HELP on my assignment,am new to VB.NET Posted by mjeff88 on 26 Mar 2008 at 7:48 AM
HERE is my assingment below, please help me and derive for me the ALGORITHM, PSEUDOCODE , FLOWCHART, and a TRACE TABLE to prove it correctiveness.

Assignment:
.AIRLINES RESERVATIONS SYSTEM

Eagle Airlines Uganda Ltd has just purchased a computer for its new automated reservations system.
The general manager has asked you to program the new system. You
are to write a program to assign seats on each flight to the airlines planes (capacity 10
seats).
-Your program should allow a customer to specify what class he wants (Economy or First class). If the person wants First class section he should be assigned seats 1-5 and for Economy, seats 6-10.
-Your program should print the boarding pass indicating the
person’s seat number and whether it is in the first class or economy section. A seat should not be assigned if it is already assigned.
-When the First class section is full, your program should ask the person if it is acceptable to be placed in the economy section (and vice versa). If yes, then make the appropriate seat assignment. If no, then print the message “Next flight leaves in five hours”.

Hints and Suggestions

• You can use radio to allow the user specify the class of interest
• The seats 1-10 can be represented as an array index whose values are either marked 0 (for free) or 1 (for occupied).
• Iteration and repetition structures would be necessary to search through the array.
• You can use a message box or text box to display the results of your assignments.
Report
Re: I NEED HELP on my assignment,am new to VB.NET Posted by knetcozd on 22 May 2008 at 1:40 AM
: HERE is my assingment below, please help me and derive for me the
: ALGORITHM, PSEUDOCODE , FLOWCHART, and a TRACE TABLE to prove it
: correctiveness.
:
: Assignment:
: .AIRLINES RESERVATIONS SYSTEM
:

: Eagle Airlines Uganda Ltd has just purchased a computer
: for its new automated reservations system.
: The general manager has asked you to program the new system. You
: are to write a program to assign seats on each flight to the
: airlines planes (capacity 10
: seats).
: -Your program should allow a customer to specify what class he wants
: (Economy or First class). If the person wants First class section he
: should be assigned seats 1-5 and for Economy, seats 6-10.
: -Your program should print the boarding pass indicating the
: person’s seat number and whether it is in the first class or economy
: section. A seat should not be assigned if it is already assigned.
: -When the First class section is full, your program should ask the
: person if it is acceptable to be placed in the economy section (and
: vice versa). If yes, then make the appropriate seat assignment. If
: no, then print the message “Next flight leaves in five hours”.
:
: Hints and Suggestions
:
: • You can use radio to allow the user specify the class of interest
: • The seats 1-10 can be represented as an array index whose values
: are either marked 0 (for free) or 1 (for occupied).
: • Iteration and repetition structures would be necessary to search
: through the array.
: • You can use a message box or text box to display the results of
: your assignments.
:

To solve this problem break down the information into a defining diagram as follows:
input>>> max_seats_for_plan=10, economy_class(seats=6 to 10),First_class(seats=1 to 5)
process>>> create SeatArray(9),FirstClassRadioBtn,EconomoyRadioButton,
next if the user selects the firstclass radio button,use a loop to
run through the first part of the array and check sequentially which array
position is empty,if its empty assign a 1 to that position



 

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.