Skip to content

carlswang/twuc-refactor-team-b

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Background

This is a program to calculate and print a statement of a customer's charges at a video store. The program is told which movies a customer rented and for how long. It then calculates the charges, which depend on how long the movie is rented, and identifies the type movie. There are three kinds of movies: regular, children's, and new releases. In addition to calculating charges, the statement also computes frequent renter points, which vary depending on whether the film is a new release.

New Requirement I

For "NEW RELEASE" movies, if days rented longer than(or equal) 5 days, customer should not get any frequent renter points. More details has been documented in CustomerTest.should_return_statement_when_rent_new_release_movie_for_5_day.

New Requirement II

Now we want to add new kind of movies: Action.

For Action movie, if days rented longer than 2 days, we would like to make the total price double. User will get 2 frequent renter points for each action movies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%