Free Web Hosting by Netfirms
Web Hosting by Netfirms | Free Domain Names by Netfirms

 

Home ] Up ]


 

Restaurant Reservation Program

 

1. Create an application that asks a user to make a reservation at a restaurant.  Prepare a TOE Chart before beginning to build the interface.
2. Create a new application and name the project restaurant.
2.1 The name of the form should be frmrestaurant.
2.2 Change the Text property to “Restaurant Reservation System”
2.3 Set the WindowState property to Maximized.
2.4 Assign the filename restaurant.vb to the form file object.
2.5 Set the project’s startup form to frmrestaurant.
3. In the center of the top of the form, create a label named lbltitle and change the Text property to “Restaurant Reservations”.  Create a graphic to hold an icon on the form. The icons are usually located in  C:\ProgramFiles\MicrosoftVisualStudio.Net\Common7\Graphics\Icons folder and you can pick an appropriate icon.  Or download an icon or picture from the internet to use.
4. Create two labels, named lblreservation and lblpeople, to hold the reservation time and the number of people in the party. Create title labels (for Time and People) above them.
5. Create buttons named btnreserve, btnview and btnexit.
5.1 In the btnreserve button, code an InputBox to accept the number of people and time of the reservation and write this information out to a file called “restaurant.dat”
b. In the btnview button, read the file and concatenate the data into the Text property of the lblreservation and lblpeople labels.
5.2 The Exit button should end the application.
6. Double-click anywhere on the form and set the focus to the btnview button.
7. Save the solution, then start and test the application. Make sure you test different values. Close the application.

 


All content on this site is free for private use only  |  Contributions are encouraged  |  Thank you to Netfirms for the free hosting  |  If copyright content is published here or links to certain content violates some right/law, contact the Webmaster to have it removed immediately.

 

Site launched: October 2005  |  Updated: July 20, 2006  |  Link exchange  |  Site map  |  Contact us