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 method called showValues( ) to display the values of an object in a formatted manner. 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 show Values() 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.).

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Part-1 (Objects and Classes)
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 method called showValues( ) to display the values of an object in a formatted
manner.
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 show Values() 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 2020
Transcribed Image Text:Part-1 (Objects and Classes) 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 method called showValues( ) to display the values of an object in a formatted manner. 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 show Values() 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 2020
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY