Write a program that can be used by MG-Train to purchase tickets. The train has three cars. Car #1 has 10 seats (rows: 1 – 5, columns: A and D), Car #2 has 20 seats (rows: 1 – 5, columns: A, C, and D), and Car #3 has 20 seats (rows: 1-5, columns: A, B, C, and D). Each car has different seat price (Car #1: $300, Car #2: $200, and Car #3: $100). The program should display a screen that shows which seats are available and which are taken. For example, the following screen shows a chart depicting each seat in the train. Seats that are taken are represented by an E symbol, and seats that are available are represented by a O symbol. MG-Train SEAT MAP Car 1 Purchase Information Seats to Purchase Can Car Total Seats to Purchase Seat Sales Ca 00 2 $400 C S300 Total Sales: S1.00 Car 3 Pche Sents Information . OB OO Seat Arailable/LTotal) Tata Set 24/ S0 Carn / 10 Car2 18/ 20 C 17 / 20 SEAT PRICE Car 1 S300 Car 2 NED. S200 Car 3 ARCD:S100 DOOD)

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

Write a program that can be used by MG-Train to purchase tickets. The train has three cars. Car
#1 has 10 seats (rows: 1 – 5, columns: A and D), Car #2 has 20 seats (rows: 1 – 5, columns: A, C,
and D), and Car #3 has 20 seats (rows: 1 – 5, columns: A, B, C, and D). Each car has different seat
price (Car #1: $300, Car #2: $200, and Car #3: $100).
The program should display a screen that shows which seats are available and which are taken.
For example, the following screen shows a chart depicting each seat in the train. Seats that are
taken are represented by an  symbol, and seats that are available are represented by a 
symbol

Write a program that can be used by MG-Train to purchase tickets. The train has three cars. Car
#1 has 10 seats (rows: 1-5, columns: A and D), Car #2 has 20 seats (rows: 1- 5, columns: A, C,
and D), and Car #3 has 20 seats (rows: 1- 5, columns: A, B, C, and D). Each car has different seat
price (Car #1: $300, Car #2: $200, and Car #3: $100).
The program should display a screen that shows which seats are available and which are taken.
For example, the following screen shows a chart depicting each seat in the train. Seats that are
taken are represented by an M symbol, and seats that are available are represented by a O
symbol.
MG-Train SEAT MAP
Car 1
Purchase Information
Seats to Purchase
Car #1
3.
Car 12
Car 3
3
Total Seats to Purchase:
Car #2
Seat Sales
Car #1:
$300
2
Car 2
$400
3
Car 3:
$300
Total Sales: $1.000
Car 3
Purchase
Clear
AB
C D
Sents Information
Seats (Available / Total)
Total Seats: 24 / 50
SEAT PRICE
Car #1: 9/ 10
Car #2 18 / 20
Car #1
AD: S300
Car 3: 17 / 20
Car N2
ACD: S200
Car #3
ABCD:S100
O DOOD O
O O DO
OO D O D O
KOOO O
Transcribed Image Text:Write a program that can be used by MG-Train to purchase tickets. The train has three cars. Car #1 has 10 seats (rows: 1-5, columns: A and D), Car #2 has 20 seats (rows: 1- 5, columns: A, C, and D), and Car #3 has 20 seats (rows: 1- 5, columns: A, B, C, and D). Each car has different seat price (Car #1: $300, Car #2: $200, and Car #3: $100). The program should display a screen that shows which seats are available and which are taken. For example, the following screen shows a chart depicting each seat in the train. Seats that are taken are represented by an M symbol, and seats that are available are represented by a O symbol. MG-Train SEAT MAP Car 1 Purchase Information Seats to Purchase Car #1 3. Car 12 Car 3 3 Total Seats to Purchase: Car #2 Seat Sales Car #1: $300 2 Car 2 $400 3 Car 3: $300 Total Sales: $1.000 Car 3 Purchase Clear AB C D Sents Information Seats (Available / Total) Total Seats: 24 / 50 SEAT PRICE Car #1: 9/ 10 Car #2 18 / 20 Car #1 AD: S300 Car 3: 17 / 20 Car N2 ACD: S200 Car #3 ABCD:S100 O DOOD O O O DO OO D O D O KOOO O
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Random Class and its operations
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
  • SEE MORE 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