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
Storeclass, where eachStorehas- 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
RentalStoreQuizAppmethods 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.
-
Download RentalStoreQuiz.zip
-
Move it from ~/Downloads/ to ~/SD/Java/.
-
Import it into Eclipse.
-
Open RentalStoreTests.java, hover over the first error, select
Fix project setup..., and click OK to Add JUnit 5 library to the build path. -
Change directories (
cd) into ~/SD/Java/workspace/RentalStoreQuiz/. -
On Github, create a repository named RentalStoreQuiz.
-
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.