Question: JAVA programming Part 1 Make a computer class. Each computer has a model number, size, and price as variables. Include these methods get(),set(),and toString(). Part
JAVA programming
Part 1
Make a computer class. Each computer has a model number, size, and price as variables. Include these methods get(),set(),and toString().
Part 2
Make a computerStore class. Every store has a name and an array of computers. Include these methods get(),set(),and print(). The get() methods should receive the index as the parameter and return the array object. The set() method should receive an array object of the Computer class and index as a parameter and set the value of the computer array.
Part 3
Make a demoComputer class create a computer object with "Mac456" as a model number 25" and cost $3,000. Print it. Then make an array of computer objects. Read data into the array from a text file. At least 4 computer records in the text file. Make the computer store name "world" and the computer array created previously. Then print using print() method.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
