I have this assignment that I dont understand. It is a very long assignment I think.
I don't want any code or something like that. I need to understand what i am suppose to do then I have to start thinking about codes. Now you may say just ask your teacher. The problem is It is the weekend and i want to get started on this assignment and I think next week I might miss couple days so that is why I decided to put it here so I can understand just a little what I am suppose to do.
And sorry for the title, it should be seat reservation.
Here is the assignment:
A,local high school needs a reservation application to keep track of seats that are reserved for the school plays scheduled throughout the year.
[B]Main Form — frmReservation
A menustrip control will be needed to have a menu title of File that contain the following menu items" Open, Save, Exit
[B]File/Open menu item:[/B]
Check to see if the following disk file exists within the BIN\Debug folder — ReservedSeats.dat
If the file does not exist inform the user that a reservation file is not available to open. If the file exists then the disk file will be opened and the following tasks will have to occur:
1. Read through the entire disk file and load a one dimensional array that has been defined as the following structure...
Public Name as string
Public Phone as string
Public DateReserved as date
2. Set up the logic so subscript 1 of the array matches to seat number 1, subscript 2 of the array to seat number 2, etc...
3. If a seat is reserved the background color of the label should be yellow. A procedure has been coded for you to use to accomplish this task.
[B]File/Save menu item:[/B] The entries in the array used to keep track of the current session's seating should be written to the ReservedSeats.dat file (DO NOT APPEND IT, overwrite it) ONLY IF the Name array element is not empty.
[B]Two formats can be used to save the disk file:[/B]
[U]The format of the [B]fixed width[/B] disk file is: [/U]
Seat— 2 characters
Name — 30 characters
Phone — 15 characters
Date Reserved — 10 characters
NewLine character — 2 characters
[U]The format of the[B] variable length[/B] disk file is:[/U]
Seat, Name, Phone ,Date Reserved, NewLine characters
[B]Double-Clicking a Seat :[/B] If the seat has already been assigned then the reserved information should be displayed within the Seat Reservation form when loaded.
Seat Assignment Form - frmSeat
[B][U]Save Button:[/U][/B] All fields are required, therefore, make sure the input data is valid. If the data is good then make sure the correct array element is updated and then close the form. The reserved seat's background must be changed to yellow.
[U][B]Remove Button:[/B][/U] When clicked it should remove the person from the array that is defined as the Classroom structure by setting the name and phone members to an empty string. The background color of the seat should be white since it is not reserved anymore.
The teacher designed the two forms for me. I attached 2 snapshot for the forms.
And again I just need to understand how the should the program works.
Thank you guys