Skip to content

codecraftuk/refactoringworkshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published