Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java according to the problem statement what is wrong with the following 2 designs. Make a valid design in UML. A local group of old

Java according to the problem statement what is wrong with the following 2 designs. Make a valid design in UML.

image text in transcribedimage text in transcribedimage text in transcribed

A local group of old movie and game enthusiasts have started a video and game rental store named Blockluster that rents old movies in the form of VHS tapes and old games in the form of NES and SNES cartridges. They are convinced this will take off in a big way and are asking for a program to be written for them. The program should simply track all movies, games and customers. For customers, they wish to track their name (assumed unique for each customer), age and date they joined. For movies, they want to have the name, description and rating (as in R, PG-13, etc.). All movie rentals are \$3.00 so no need to track pricing for movies. For games, they want a name, type (NES or SNES) and cost, since different games cost different amounts. Blockluster would like to be able to: - track when a customer rents a movie - print reports showing all the movies and games a customer has rented - for each movie and game, they would like to print a report on all the customers who have rented that movie or game Please select all (or at least the worst) of the OO Design Principles violated by this design: 1a - Must be able to store required information ib - Must be able to access the required information 1c - Data should not be duplicated 2a - Nouns should become classes 2b - Classes should have intelligent behaviors (methods) that may operate on their data In the following blank, please explain why or how the principle (or principles) that you chose is/are violated (i.e., what is wrong with Solution A?). Enter your answer here Please select all (or at least the worst) of the OO Design Principles violated by this design: 1a - Must be able to store required information 1b - Must be able to access the required information 1c - Data should not be duplicated 2a - Nouns should become classes 2b - Classes should have intelligent behaviors (methods) that may operate on their data In the following blank, please explain why or how the principle (or principles) that you chose is/are violated (i.e., what is wrong with Solution B ?). A local group of old movie and game enthusiasts have started a video and game rental store named Blockluster that rents old movies in the form of VHS tapes and old games in the form of NES and SNES cartridges. They are convinced this will take off in a big way and are asking for a program to be written for them. The program should simply track all movies, games and customers. For customers, they wish to track their name (assumed unique for each customer), age and date they joined. For movies, they want to have the name, description and rating (as in R, PG-13, etc.). All movie rentals are \$3.00 so no need to track pricing for movies. For games, they want a name, type (NES or SNES) and cost, since different games cost different amounts. Blockluster would like to be able to: - track when a customer rents a movie - print reports showing all the movies and games a customer has rented - for each movie and game, they would like to print a report on all the customers who have rented that movie or game Please select all (or at least the worst) of the OO Design Principles violated by this design: 1a - Must be able to store required information ib - Must be able to access the required information 1c - Data should not be duplicated 2a - Nouns should become classes 2b - Classes should have intelligent behaviors (methods) that may operate on their data In the following blank, please explain why or how the principle (or principles) that you chose is/are violated (i.e., what is wrong with Solution A?). Enter your answer here Please select all (or at least the worst) of the OO Design Principles violated by this design: 1a - Must be able to store required information 1b - Must be able to access the required information 1c - Data should not be duplicated 2a - Nouns should become classes 2b - Classes should have intelligent behaviors (methods) that may operate on their data In the following blank, please explain why or how the principle (or principles) that you chose is/are violated (i.e., what is wrong with Solution B ?)

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

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

Students also viewed these Databases questions