Hi I'm in a predicament I need some help writing a program for extra credit for my class and I really don't know how to get started with it it need to use modular structure use a menu and print masks could someone please help me getting in the right direction and or write the program for me haha here the guide lines
Prepare a program that will load an array from a passenger
data file and compute & display information from menu choices
#1 Create a program Flight.bas to create a data file called FLY.DAT
Last Name
First Name
Flight
Seat
Destination
Jones
William
3
40
Prov
Yaya
Betty
2
14
Bos
Atman
George
2
27
Bos
Smyth
Donna
3
15
Prov
Martel
Paul
3
29
Prov
Zarro
Larry
1
31
DC
Turrell
Kevin
1
11
DC
Bemlish
Dorothy
3
21
Pro
Smith
John
2
27
Bos
DeCosta
Peter
1
32
DC
#2 Create a program, named MOAP.BAS Use Fly.dat for input.
The Program uses a menu as illustrated below.
INTERACTIVE COMPUTER CORPORATION
FLIGHT MENU
CODE FUNCTION
1 LOAD FLIGHT INFORMATION
2 DISPLAY PASSENGER INFORMATION BY LAST NAME
3 DISPLAY INFORMATION BY DESINATION
4 SELECT AN INDIVIDUAL PASSENGER
5 EXIT
ENTER CODE 1 2 3 4 5
SELECTION ___
1. The Array should be loaded when the operator selects #1. Once it is loaded, the program should not allow the operator to reload.
The message INFORMATION IS ALREADY LOADED
Press the enter key to continue
1. Displaying information for 2, 3, 4, should not occur unless the array has been loaded
The message INFORMATION HAS NOT BEEN LOADED
USE SELECTION 1
Press the enter key to continue
2. All selections except number 5 should return to the menu when completed
3. Option 2 Should display a passenger report sorted by passenger last name.
INTERACTIVE COMPUTER CORPORATION
LAST FIRST
NAME NAME FLIGHT DESTINATION
XXXXXXXX XXXXXXXX 9 XXXX
XXXXXXXX XXXXXXXX 9 XXXX
Passenger count 99
PRESS ENTER TO CONTINUE
4. Option 3 should display a report by Destination. Sorted by destination
5. Option 4 should clear the screen and ask for passenger last name, a binary search should be used go find the passenger in the array
ENTER PASSENGER LAST NAME _
IF PASSENGER EXISTS, DISPLAY
LAST FIRST
NAME NAME DESTINATION SEAT
XXXXXXXX XXXXXXXX XXX 99
PRESS ENTER TO CONTINUE
IF PASSENGER DOES NOT EXISTS, DISPLAY
PASSENGER NOT FOUND
6. Option 5 should end the program
burger2227
Where exactly are you stuck?
Posted Mar 20 2009
What part don't you understand? Or is it all greek to you? You must attempt to create the code! We do not do homework assignments, so post your code when you get stuck somewhere.
After all, you must know how to do most of the assignment already. So this should not be foreign to you if you've paid attention in class.
Solitaire
Posted Mar 20 2009
If this is an "extra credit" assignment, then show that your really deserve to get the extra credit by doing the work yourself. Otherwise, make do with the regular credit.