Menu

Java Programming Part 1 Make Computer Class Computer Model Number Size Price Variables Inc Q43799455

JAVA programming

Part 1

Make a computer class. Each computer has a model number, size,and price as variables. Include these methods get(),set(),andtoString().

Part 2

Make a computerStore class. Every store has a name and an arrayof computers. Include these methods get(),set(),and print(). Theget() methods should receive the index as the parameter and returnthe array object. The set() method should receive an array objectof the Computer class and index as a parameter and set the value ofthe 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 arrayof computer objects. Read data into the array from a text file. Atleast 4 computer records in the text file.   Makethe computer store name “world” and the computer array createdpreviously. Then print using print() method.

Expert Answer


Answer to JAVA programming Part 1 Make a computer class. Each computer has a model number, size, and price as variables. Include t…

OR