Create a simple ticketing program that will display a series of dialog to ask the passengers name, current and destination stations. The objective of the program is to identify the fare of the ride , accept payment, and to produce receipt to the passengers. The stations are adapted from the Metro Manila Rail Transit so is the fair. The fair matix is shown below.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Create a simple ticketing program that will display a series of dialog to ask the passengers name, current and destination stations. The objective of the program is to identify the fare of the ride , accept payment, and to produce receipt to the passengers. The stations are adapted from the Metro Manila Rail Transit so is the fair. The fair matix is shown below.

Output:
Input
Train Station
Welcome to DMF Ticketing System
Leaving From
Enter your name:
Ortigas
W. Dela Cruz
Cancel
OK
Cancel
OK
1st Dialog: Passenger's name
2nd Dialog: Passenger's Origin
Train Station
Irput
From: Ortigas
Going To
To: Quezon Ave.
Quezon Ave.
Fare Price: 16
Enter your payment amount:
100
Cancel
OK
Cancel
OK
3rd Dialog: Passenger's Destination
4th Dialog: Passenger's Payment
RECEIPT
DME Ticketing System
Malolos, Bulacan
Name: W. Dela Cruz
Location: Ortigas
Destination: Quezon Ave.
Fare: 16
Payment: 100.0
Change: 84.0
Thank you for riding with us!
OK
5th Dialog: Receipt
Transcribed Image Text:Output: Input Train Station Welcome to DMF Ticketing System Leaving From Enter your name: Ortigas W. Dela Cruz Cancel OK Cancel OK 1st Dialog: Passenger's name 2nd Dialog: Passenger's Origin Train Station Irput From: Ortigas Going To To: Quezon Ave. Quezon Ave. Fare Price: 16 Enter your payment amount: 100 Cancel OK Cancel OK 3rd Dialog: Passenger's Destination 4th Dialog: Passenger's Payment RECEIPT DME Ticketing System Malolos, Bulacan Name: W. Dela Cruz Location: Ortigas Destination: Quezon Ave. Fare: 16 Payment: 100.0 Change: 84.0 Thank you for riding with us! OK 5th Dialog: Receipt
North
QUezon
Kamuring
Cute
Santnin
Onigas
Shaw
Rori
Ruenda
Ayala
Maglianen
Tan
Averue
Avenue
North
130
160
160
200
20.0
240
24.0
240
Avanue
Quaaor
130
130
160
18.0
20.0
20.0
20
24.0
240
24.0
28.0
Avenue
Kamunirg
130
130
130
130
16.0
20.0
20.0
20.0
240
240
24.0
Cubo
200
130
130
130
16.0
160
200
240
240
Gavtolen
160
160
130
130
130
13.0
16.0
10.0
20.0
20.0
200
24.0
Ortigan
200
160
14.0
130
130
13.0
13.0
160
18.0
200
200
200
Shaw
200
200
140
160
130
130
130
130
160
160
200
250
Bon
200
200
21.0
160
160
130
13.0
13.0
13.0
160
160
200
Guacalupe
24.0
200
200
200
160
150
13.0
13.0
13.0
13.0
160
150
Buenda
24.0
240
200
200
180
16.0
13.0
13.0
13.0
130
180
Ayala
24.0
240
24.0
200
200
200
10.0
10.0
13.0
13.0
130
130
Magullanes
28.0
240
240
240
200
200
20.0
16.0
16.0
13.0
130
130
Ta
280
20
240
240
24.0
200
200
20.0
160
16.0
13.0
130
Transcribed Image Text:North QUezon Kamuring Cute Santnin Onigas Shaw Rori Ruenda Ayala Maglianen Tan Averue Avenue North 130 160 160 200 20.0 240 24.0 240 Avanue Quaaor 130 130 160 18.0 20.0 20.0 20 24.0 240 24.0 28.0 Avenue Kamunirg 130 130 130 130 16.0 20.0 20.0 20.0 240 240 24.0 Cubo 200 130 130 130 16.0 160 200 240 240 Gavtolen 160 160 130 130 130 13.0 16.0 10.0 20.0 20.0 200 24.0 Ortigan 200 160 14.0 130 130 13.0 13.0 160 18.0 200 200 200 Shaw 200 200 140 160 130 130 130 130 160 160 200 250 Bon 200 200 21.0 160 160 130 13.0 13.0 13.0 160 160 200 Guacalupe 24.0 200 200 200 160 150 13.0 13.0 13.0 13.0 160 150 Buenda 24.0 240 200 200 180 16.0 13.0 13.0 13.0 130 180 Ayala 24.0 240 24.0 200 200 200 10.0 10.0 13.0 13.0 130 130 Magullanes 28.0 240 240 240 200 200 20.0 16.0 16.0 13.0 130 130 Ta 280 20 240 240 24.0 200 200 20.0 160 16.0 13.0 130
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Block Comments
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education