Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.25 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.25 KB

TicketBooker

What to Do

  • Refactor to improve maintainability
  • Add new functionality:
    • Add child ticket
      • Under 5s are free
      • Age 5 - 12 are half price

Commands

Command Description
set ticket price Sets the prices of a standard ticket.
add (standard/student) {name} {age} Adds a ticket for a standard or student. Requires a name and an age.
print summary Displays the Total numbers of each tickets type sold, the total ticket revenue for each tick type and the total revenue.
exit Exits the console app.

Other Info

Ticket Types:

  • Standard - Full price
  • Students - 20% off standard ticket