railway ticket simple program

4
Railway Ticket Rate Viewer This is an application wherein it shows the different rates of the train ticket in each destination. Objective This project introduces Railway Ticket Rate Viewer. Railway ticket system aims to provide a secure, accurate and easy way to display train ticket rates. This project is developed in Visual Basic 6.0. This Railway Ticket Rate Viewer should be able to show different ticket rates for each destination. Using this, the Ticket Counter person can perform operation like finding out the costs of each ticket. User Interface and Coding 1. Create this user interface PictureB ox Label Label Label Frame ComboBox Option Button

Upload: ella-marie-wico

Post on 27-Jun-2015

1.191 views

Category:

Education


1 download

DESCRIPTION

Simple Program

TRANSCRIPT

Page 1: Railway ticket Simple Program

Railway Ticket Rate ViewerThis is an application wherein it shows the different rates of the train ticket in each

destination.

Objective

This project introduces Railway Ticket Rate Viewer. Railway ticket system aims to provide a secure, accurate and easy way to display train ticket rates. This project is developed in Visual Basic 6.0. This Railway Ticket Rate Viewer should be able to show different ticket rates for each destination. Using this, the Ticket Counter person can perform operation like finding out the costs of each ticket.

User Interface and Coding

1. Create this user interface

Form:

PictureBoxLabel

Label

Label

TextBox

Frame

ComboBox

Option Button

Page 2: Railway ticket Simple Program

- Change the BackColor into Blue- Change the Caption into “Northwest Indiana Railroad”

Adding Picture:- Click the PictureBox on the toolbar. Drag and release it into the form. Double-Click it, locate the picture you want and select it.

Combo Box:- Change the text into “Choose your Destination”

Frame:

- Change the caption into “Please Select”

Option Button- Make 4 option buttons and rename it into:

- Single- Ten- Monthly- Yearly

2. Now, enter these codes inside the Form_load

Page 3: Railway ticket Simple Program

3. Enter these codes inside the Enter event

4. Enter these codes inside the Quit

event

Testing

1. After you’ve done all the procedures, click F5 to test whether your program is working properly.

2. If not, debug your program and then test it again.

Wherein: sb = South Bendd = Dunesg = Garyec = East Chicagoh = Hammondc = Formula cost

ConstantsNote:

Ten Ride Ticket Formula Cost:(10 * rate of destination) – (10* rate of destination * 0.02)

Monthly Ride Ticket Formula Cost:(30 * rate of destination) – (30* rate of destination * 0.05)

Yearly Ride Ticket Formula Cost:12 * ((30 * rate of destination) – (30* rate of destination * 0.05))

Page 4: Railway ticket Simple Program

Saving as an .EXE file

1. Create a new folder in the Desktop wherein you can save your program.

2. To save the program as an .EXE file (executable) from the menu bar, click File then choose MakeProject1.exe

3. Name your executable file as "Railway Ticket Rate Viewer" then save it to the new folder you created a while ago.