Project - ITDR2104 (10 Marks) General Instructions: This project work consists of four parts. This is not a group work. Every student must work on this project individually. This project has to be...


Project - ITDR2104 (10 Marks)<br>General Instructions:<br>This project work consists of four parts. This is not a group work. Every student must<br>work on this project individually.<br>This project has to be completed as we make progress in this course.<br>Each part of the project can be completed within 3 weeks from the completion of relevant<br>part in class.<br>Two or more students submitting a similar report will get ZERO marks.<br>• Submit this report on 23/12/2021 4nm through Blackboard only. No email submission<br>will be acknowledged/accepted/marked.<br>Part-1:5 marks<br>Create a Java Project (with a class and a test class) to represent some real-world entity such as a<br>technology item (TV, Fan etc), an animal, a person, a vehicle, etc. In our class, we have already<br>seen example classes such as Circle, Student, Rectangle, TV etc.<br>The class will:<br>a) Create a total of 5 member variables for the class by selecting the appropriate data types<br>for each field. For example, a class to represent a lamp might include color, price, height,<br>numBulbs, batteryOperated. Each of these 5 variables needs a data type.<br>b) Include at least three different constructor methods, including the default constructor<br>(no argument constructor), so totally three constructors.<br>c) Create a<br>manner.<br>method called show Values( ) to display the values of an object in a formatted<br>The Java test class (with a main method) will:<br>a) Instantiate at least three objects (using each of the constructors at least once) with your<br>program.<br>b) Store the data from the individual objects into an array.<br>c) Utilize the showValues() method to display the content of an object created.<br>Note:<br>1) Draw the UML diagram for the class and then implement the class. Draw object diagrams<br>wherever possible to show the state of the objects created<br>2) Generate output samples demonstrating all of your member functions showing their<br>functionality (i.e. inputting values, outputting values (displaying them), performing<br>calculations, etc.).<br>Include the below in your project report:<br>1. The UML diagram of the class.<br>2. The class and test class<br>3. Screenshots of output generated from the application.<br>ITDR2104 Programming<br>Fall 2021<br>Part-2: 5 marks<br>Consider the Class that you designed in Part-1 of this project and do the following:<br>1. Encapsulate the class.<br>2. Implement the Comparable and Cloneable interface for your class.<br>3. The Test class should create 10 instances (objects) of your class.<br>4. Store these instances in Array and ArrayList.<br>5. Show the demo of sorting these objects stored in Array and ArrayList.<br>Include the below in your project report:<br>The code of implementing Comparable and Cloneable Interfaces.<br>Screenshot of relevant (Comparable and Cloneable) outputs.<br>

Extracted text: Project - ITDR2104 (10 Marks) General Instructions: This project work consists of four parts. This is not a group work. Every student must work on this project individually. This project has to be completed as we make progress in this course. Each part of the project can be completed within 3 weeks from the completion of relevant part in class. Two or more students submitting a similar report will get ZERO marks. • Submit this report on 23/12/2021 4nm through Blackboard only. No email submission will be acknowledged/accepted/marked. Part-1:5 marks Create a Java Project (with a class and a test class) to represent some real-world entity such as a technology item (TV, Fan etc), an animal, a person, a vehicle, etc. In our class, we have already seen example classes such as Circle, Student, Rectangle, TV etc. The class will: a) Create a total of 5 member variables for the class by selecting the appropriate data types for each field. For example, a class to represent a lamp might include color, price, height, numBulbs, batteryOperated. Each of these 5 variables needs a data type. b) Include at least three different constructor methods, including the default constructor (no argument constructor), so totally three constructors. c) Create a manner. method called show Values( ) to display the values of an object in a formatted The Java test class (with a main method) will: a) Instantiate at least three objects (using each of the constructors at least once) with your program. b) Store the data from the individual objects into an array. c) Utilize the showValues() method to display the content of an object created. Note: 1) Draw the UML diagram for the class and then implement the class. Draw object diagrams wherever possible to show the state of the objects created 2) Generate output samples demonstrating all of your member functions showing their functionality (i.e. inputting values, outputting values (displaying them), performing calculations, etc.). Include the below in your project report: 1. The UML diagram of the class. 2. The class and test class 3. Screenshots of output generated from the application. ITDR2104 Programming Fall 2021 Part-2: 5 marks Consider the Class that you designed in Part-1 of this project and do the following: 1. Encapsulate the class. 2. Implement the Comparable and Cloneable interface for your class. 3. The Test class should create 10 instances (objects) of your class. 4. Store these instances in Array and ArrayList. 5. Show the demo of sorting these objects stored in Array and ArrayList. Include the below in your project report: The code of implementing Comparable and Cloneable Interfaces. Screenshot of relevant (Comparable and Cloneable) outputs.
Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here