Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use VS Code or Netbeans and use JAVA Individual Assignment 2: Container Madness Due Friday by 11:59pm Points 125 Submitting a file upload Available

image text in transcribedimage text in transcribedimage text in transcribedPlease use VS Code or Netbeans and use JAVA

Individual Assignment 2: Container Madness Due Friday by 11:59pm Points 125 Submitting a file upload Available until Mar 14 at 11:59pm IMPORTANT: This is an individual assignment. You may not work with a partner on this assignment. . You should follow all proper coding conventions, practices, and Object Oriented Programming techniques as discussed in class You should not use static/global variables or methods anywhere in this assignment. Each class should be created in its own file. Goal: To use 00 techniques (including inheritance) to represent complex class relationships describing different types of people and containers at a Container Party. Deliverables: Your Java code files (as described below). A screen capture of your UML Class diagram. Requirements: Step 1: Create a new Java class named ContainerMadnessAssignment. Add your main method to this class. Step 2: Add a Container class. It should be an abstract class. Your Container class must be properly encapsulated and include the following attributes: brand height color In addition to a constructor that allows you to set all of these values, it should include a getInfo() method and an abstract calculateVolume) method. Step 3: Add a CircularContainer class. Your CircularContainer must be a subclass of your Container class. In addition to the attributes that it inherits from Container, CircularContainer should add the following attributes: radius It should include a getInfo() method and a calculateVolume() method that override the versions of these methods from your parent class. You may use the following formula for volume: volume=n-radius2. height Step 4: Add a RectangularContainer class to your project. Your RectangularContainer must be a subclass of your Container class. In addition to the attributes that it inherits from Container, RectangularContainer should add the following attributes: width length It should include a getInfo() method and a calculateVolume() method that override the versions of these methods from your parent class. You may use the following formula for volume: volume=length-width-height Step 5: Add a Container Party class. It should contain: - The date of the party - A list of people attending (please use your Person object here) - A list of containers at the party (please use your Container class here) - The address of the party (this can be either a String or a Class) Important: Your getInfo() methods in child classes must use the super keyword to leverage the getInfo() method of its parent class. Remember DRY - Don't Repeat Yourself! You should not unnecessarily duplicate any code between getInfo() in your subclass and superclass! Step 6: Create a Person class with 3 attributes of your choice. Add methods, and constructors as necessary to complete the assignment. Step 7: Create a UML Class Diagram for your Container Party, Container, and Person classes. You must follow the 3 box approach used in class, represent "is-a" relationships with vertical lines, "has-a" relationships with horizontal lines, and label your relationships. You may use any tool you like (including paper and pen!), but you must upload an image of your diagram. No credit will be given for VISIO files or URLs to websites. Step 8:In your main method, create 2 instances of your Container Party class. Each party should take place at a different address on a different date. Three different people should attend each party. Each party should have two CircularContainers and two RectangularContainers. You should only use one ArrayList to contain all of the containers at each party. This ArrayList should contain appropriate objects -- not Strings. There is no need to use Scanner -- you may hard-code these values in your main() method. Your entity classes should not contain any hard-coded values. Use the getInfo() method of your Container Party class to display all information about each party. You are welcome to use either VS Code or NetBeans to complete this assignment. If you use VSCode, upload your Java files. If you use NetBeans, export your project to a ZIP file and upload that. Please do not upload any compression formats other than ZIP files. Other formats (e.g. 7zip, tar.gz, etc.) will not be accepted and will result in a grade of zero. Remember to also upload a screenshot of your UML diagram. Individual Assignment 2: Container Madness Due Friday by 11:59pm Points 125 Submitting a file upload Available until Mar 14 at 11:59pm IMPORTANT: This is an individual assignment. You may not work with a partner on this assignment. . You should follow all proper coding conventions, practices, and Object Oriented Programming techniques as discussed in class You should not use static/global variables or methods anywhere in this assignment. Each class should be created in its own file. Goal: To use 00 techniques (including inheritance) to represent complex class relationships describing different types of people and containers at a Container Party. Deliverables: Your Java code files (as described below). A screen capture of your UML Class diagram. Requirements: Step 1: Create a new Java class named ContainerMadnessAssignment. Add your main method to this class. Step 2: Add a Container class. It should be an abstract class. Your Container class must be properly encapsulated and include the following attributes: brand height color In addition to a constructor that allows you to set all of these values, it should include a getInfo() method and an abstract calculateVolume) method. Step 3: Add a CircularContainer class. Your CircularContainer must be a subclass of your Container class. In addition to the attributes that it inherits from Container, CircularContainer should add the following attributes: radius It should include a getInfo() method and a calculateVolume() method that override the versions of these methods from your parent class. You may use the following formula for volume: volume=n-radius2. height Step 4: Add a RectangularContainer class to your project. Your RectangularContainer must be a subclass of your Container class. In addition to the attributes that it inherits from Container, RectangularContainer should add the following attributes: width length It should include a getInfo() method and a calculateVolume() method that override the versions of these methods from your parent class. You may use the following formula for volume: volume=length-width-height Step 5: Add a Container Party class. It should contain: - The date of the party - A list of people attending (please use your Person object here) - A list of containers at the party (please use your Container class here) - The address of the party (this can be either a String or a Class) Important: Your getInfo() methods in child classes must use the super keyword to leverage the getInfo() method of its parent class. Remember DRY - Don't Repeat Yourself! You should not unnecessarily duplicate any code between getInfo() in your subclass and superclass! Step 6: Create a Person class with 3 attributes of your choice. Add methods, and constructors as necessary to complete the assignment. Step 7: Create a UML Class Diagram for your Container Party, Container, and Person classes. You must follow the 3 box approach used in class, represent "is-a" relationships with vertical lines, "has-a" relationships with horizontal lines, and label your relationships. You may use any tool you like (including paper and pen!), but you must upload an image of your diagram. No credit will be given for VISIO files or URLs to websites. Step 8:In your main method, create 2 instances of your Container Party class. Each party should take place at a different address on a different date. Three different people should attend each party. Each party should have two CircularContainers and two RectangularContainers. You should only use one ArrayList to contain all of the containers at each party. This ArrayList should contain appropriate objects -- not Strings. There is no need to use Scanner -- you may hard-code these values in your main() method. Your entity classes should not contain any hard-coded values. Use the getInfo() method of your Container Party class to display all information about each party. You are welcome to use either VS Code or NetBeans to complete this assignment. If you use VSCode, upload your Java files. If you use NetBeans, export your project to a ZIP file and upload that. Please do not upload any compression formats other than ZIP files. Other formats (e.g. 7zip, tar.gz, etc.) will not be accepted and will result in a grade of zero. Remember to also upload a screenshot of your UML diagram

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

Students also viewed these Databases questions

Question

What are prime costs? Conversion costs?

Answered: 1 week ago

Question

=+Is the guilt appropriate for the audience?

Answered: 1 week ago