Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MavBox Customer -customerList:ArrayList movieList:ArrayList Movie> -gameList:ArrayList >MavBox +getCustomerList():ArrayList +getMovieList:ArrayList +getGameList():ArrayList +addCustomer(Customer customer):Void +addMovie(Movie movie): Void +addGame(Game game):Void +toString():String -name:String -credit CardNumber:String -rentalList:ArrayList Customer >Customer(String name,

image text in transcribed

image text in transcribed

image text in transcribed

MavBox Customer -customerList:ArrayList movieList:ArrayList Movie> -gameList:ArrayList >MavBox +getCustomerList():ArrayList +getMovieList:ArrayList +getGameList():ArrayList +addCustomer(Customer customer):Void +addMovie(Movie movie): Void +addGame(Game game):Void +toString():String -name:String -credit CardNumber:String -rentalList:ArrayList Customer >Customer(String name, String creditCardNumber) +getName():String +setName(String name):Void +getCreditCardNumber):String +setCreditCardNumber(String creditCardNumber):Void +getRentalList():ArrayList +addRental(Rental rental):Void +toString):String Rental title:String -rentalCode:String rice:double Rental() >Rental(String title, String rentalCode, double price) +getTitle():string +setTitle(String title):Void tgetRentalCode():String +setRentalCode(String rentalCode):Void tgetPrice():double +setPrice(double price):void +toString():String ie ame MovieType: enum(BLURAY,DVD) mType:MovieType-DVD >Movie constructor>>Movie(String title, String rentalCode, double price, MovieType type setMovieType(MovieType type):Void etMovieTypel):MovieType toString():String ameType:enum(XBOX, PLAYSTATION, NINTENDO) gType:GameType XBOX constructor?>Game Game(String title, String rentalCode, double price, GameType type) setGameType(GameType type):Void getGameType):GameType toString:Strin 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. Output should be as follows: Command Prompt icrosoft Windows [Version 10.e.17134.523] c) 2018 Microsoft Corporation. All rights reserved. :\Users HotMama>cd desktop :\Users\HotMamaDesktop>cd j2hw1 :\Users\HotMama\Desktop\j2hw1>java MavBoxTest Customer List [Name Jones Credit Card Number 1234-1234-1234-1234 Rental List [], Name Smith Credit Card Number 6543-654 3-6543-6543 Rental List [1 Movie List [ Title Titanic Rental code 1A Price 4.99 Novie Type BLURAY, Title Star Wars Rental Code 2c Price 5.99 Movi e Type DVD] 59 Game Type NINTENDO] :\Users\HotMama\Desktop j2hw1>_

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

Determine the amplitude and period of each function.

Answered: 1 week ago