Transcribed TextTranscribed Text

MavBox Customer -customerList:ArrayList -name:String -movielist:ArrayList creditCardNumber:String -gameList:ArrayList -rentallist:Arraylist <>MavBox() <>Customer() +getCustomerList():Arraylist<>Customer(Stringname, String creditCardNumber) +getMovieList():ArrayList +getName():String +getGameList():ArrayList +setName(String name):Void +addCustomer(Customer customer):Void getCreditCardNumber():String +addMovie(Movie movie): Void +setCreditCardNumber(String creditCardNumber):Void +addGame(Game game):Void +toString():String +addRental(Rental rental):Void Rental +toString():String title:String -rentalCode:String -price:double <>Rental() <>Rental(String title, String rentalCode, double price) +getTitle():String +setTitle(String title):Void +getRentalCode():String +setRentalCode(StringrentalCode):Void +getPrice():double +setPrice(double price):void +toString():String Movie Game -MovieType: enum{BLURAY,DVD} -GarneType:enum{XBOX PLAYSTATION, NINTENDO} mType:MovieType=DVD -gType:GameType=XBOX <>Movie() <>Game() b>Movie(String title, String rentalCode, double price, MovieType type <>Game(String: title, String rentalCode, double price, GameType type) +setMovieType(MovieType type):Void -setGameType(GameType type):Void +getMovieType():MovieType +getGameType():GameType toString():String +toString():String Develop all the classes in the UML. Develop a MavBoxTest application that creates a customer list, a movie list, and a game list. Put the following data on the appropriate lists. Customer Data: Jones, 1234-1234-1234-1234 Smith, 6543-6543-6543-6543 Movie Data: Titanic, 1A, 4.99, BLURAY Star Wars, 2C, 5.99, DVD Game Data: Warcraft, 5D, 3.99, PLAYSTATION Tomb Raider, 12F, 3.59, NINTENDO Print the lists to the screen.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

public class Rental {

    private String title;

    private String rentalCode;

    private double price;

    public Rental() {


    public Rental(String title, String rentalCode, double price) {
       this.title = title;
       this.rentalCode = rentalCode;
       this.price = price;

    public String getTitle() {
       return title;

    public void setTitle(String title) {
       this.title = title;

    public String getRentalCode() {
       return rentalCode;

    public void setRentalCode(String rentalCode) {
       this.rentalCode = rentalCode;

    public double getPrice() {
       return price;

    public void setPrice(double price) {
       this.price = price;

    public String toString() {
       return "Title " + getTitle() + " Rental Code " + getRentalCode() +
                " Price " + getPrice();

By purchasing this solution you'll be able to access the following files:

50% discount

$35.00 $17.50
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats