Git Product home page Git Product logo

movie-ticket-trading's Introduction

Movie Tickets

The Coding Test

In a world of Netflicks, Hoolu, Amayzon Prime and other video streaming services, movie watching customers are dwindling. The powers that be have decided to slash movie ticket prices to entice customers back into cinemas. We have been tasked to build an application that reports the projected cost of movie tickets from historical customer transaction to inform decision making around ticket pricing. Requirements

There are four types of movie tickets

  • Adult: For customers 18 years and older but less than 65 years old. Costs $25.

  • Senior: For customers 65 years and older. 30% cheaper than Adult tickets

  • Teen: For customers 11 years and older but less than 18 years old. Costs $12

  • Children: For customers less than 11 years of age. Costs $5.

  • If there are 3 or more Children's tickets in a transaction, there's a 25% discount applied to the cost of Children's tickets

Your task is to implement a java application which will expose an API call to take transaction as input and return below information: The ID of the transaction Each individual type of movie ticket present in that transaction, ordered alphabetically, and it's quantity and total cost The total cost of all movie tickets for that transaction

Feature to be added

  • Unit test
  • Integration Test for service level
  • Model and Calculation Validation
  • Custom exception bind to Http response
  • Error Handling
  • Currency display with unit

movie-ticket-trading's People

Contributors

jd-kr avatar

Watchers

Janaka Dissanayake 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.