Rental Store Quiz

You are going to create an application that models a film rental store. The store is hoping to grow its list of registered customers, and make lots of money. When a new customer comes in, the store gathers their first and last name, and updates the system with their data.

Each customer can rent 0 or more films.

We have provided the Customer and Film classes for you.

This quiz requires you to add code to the RentalStoreQuizApp and Store classes, in addition to finishing the RentalStoreTests JUnit test.

You will:

  • Finish implementing the given Store class, where each Store has

    • An integer identifier
    • 0 or more registered unique Customers
    • Methods to add a customer, return the number of customers, and display all data in the store and its customers.
  • Finish implementing the RentalStoreQuizApp methods that allow you to:

    • Create a store
    • Create a customer
    • Register a customer with the store
    • Display all the store's customer data, including any films they may have rented
  • Finish implementing the provided JUnit test

    • The JUnit test will verify that you can not add a duplicate customer to a store.

This is a graded quiz.

  1. Download RentalStoreQuiz.zip

  2. Move it from ~/Downloads/ to ~/SD/Java/.

  3. Import it into Eclipse.

  4. Open RentalStoreTests.java, hover over the first error, select Fix project setup..., and click OK to Add JUnit 5 library to the build path.

  5. Change directories (cd) into ~/SD/Java/workspace/RentalStoreQuiz/.

  6. On Github, create a repository named RentalStoreQuiz.

  7. In ~/SD/Java/workspace/RentalStoreQuiz/, initialize git and connect the remote repo:

echo "# RentalStoreQuiz" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/YOURGITHUBUSERNAMEHERE/RentalStoreQuiz.git
git push -u origin main

When you finish, push to Github.


Up -- Next