Giter Site home page Giter Site logo

html-5's Introduction

HTML 5

Tested On firefox 26, Chrome Version 29.0.1547.62

Main Html file - MovieBokking.html JavaScript File - scripts/calculations.js


// Assumtion :- Ticket Price = 100 - As there is not mentioned ticket price // Validations :- Default Date is todays date & no. of tickets is 0 if user not selected.


Calculations :-

  • No discount applicable -- (Week-end Ticket booking ...within first 10 movies)

total_amount = ticketPrice * no.of.tickets e.g. total_amount = 100 * 2 total_amount = 200 RS

  • Week Day ticket booking having 5% discount -(2 Tickets each 100 RS 5% discount)

amount = ticketPrice * no.of.tickets discount = amount*discount %

e.g. amount = 100*2 amount = 200 discount = 5% discount = amount * .05 = 200 * .05 = 10 total_amount = amount - discount total_amount = 200 - 10 = 190 RS

  • Movies booked till date more than 10 then having 10% discount -(2 Tickets each 100 RS 10% discount)

amount = ticketPrice * no.of.tickets discount = amount*discount %

e.g. amount = 100*2 amount = 200 discount = 10% discount = amount * .10 = 200 * .10 = 20 total_amount = amount - discount total_amount = 200 - 20 = 180 RS

  • Movies booked till date more than 10 plus booking on week day then having 5+10% = 15% discount -(2 Tickets each 100 RS 15% discount)

amount = ticketPrice * no.of.tickets discount = amount*discount %

e.g. amount = 100*2 amount = 200 discount = 15% discount = amount * .15 = 200 * .15 = 30 total_amount = amount - discount total_amount = 200 - 30 = 170 RS

html-5's People

Contributors

rah001 avatar

Watchers

rahul patil avatar James Cloos 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.