Coder Social home page Coder Social logo

lab-cinema's Introduction

Lab-Cinema

# Description
The system allows a user to select the number of tickets they wish to purchase. The system giving discounts to people depending on their age, and they wish for this feature to be included as a feature during the calculation of the cost of tickets.


# Features:

  • A welcome message is presented to the user when the program starts.
  • A menu is presented to the user with the following options:
    ○ a) Create a new order
    ○ b) List the films that are currently being shown at the cinema
    ○ c) View previous orders
    ○ d) Quit the program.
  • When the user clicks the first option, the will then be asked what film they wish to see,
    and the number of tickets they would like to buy and what age they are.
  • Depending on their age a discount should be applied:
    ○ Ages 0 ­-12 ­­ 40% discount on the ticket
    ○ Ages 14­-64 ­­ Normal price
    ○ Ages 65 and older, 20% discount.
  • When the user attempts to close the program, they will be asked: “are you sure you wish to close this program?” If the user types “y” then, it will close, or N and the program will return back to the main menu.
  • When a user has finished with the current option, they will then be returned back to the main menu allowing them to make a selection.
  • All of the purchases should be saved into a text file.
  • When the program loads, all of the information should be put into memory.
  • An option should exist to allow the user to view previous bookings.
  • All input from the user should be validated to ensure that no blank values have been entered. If they do enter a blank value, the program should ask them to enter the value again.

lab-cinema's People

Contributors

taioyui avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.