Question: JAVA***** A computer manufacturing company needs to develop simple software for the assembly of a computer. The company wants to model these components of the

JAVA*****

A computer manufacturing company needs to develop simple software for the assembly of a computer. The company wants to model these components of the computer: CPU, RAM, Hard Disk and Motherboard.

1. Represent these in a composition model considering that:

a. The CPU has these properties: clock frequency (integer), instruction set type (ex. CISC or RISC), type (32 or 64 bit), number of registers, manufacturer (ex. AMD or INTEL).

b. The RAM has these properties: size, type (DDR, DDR2 or DDR3), and manufacturer. c. Hard Disk has these properties: size, rpm (integer), and manufacturer. d. Motherboard has these properties: manufacturer, year of production, Chipset version, number of USB ports and max. RAM.

2. Write a class to test the program:

a. Create 2 computers with the following features:

First computer:

CPU: 3 GHz, CISC, 32 bit, 64 registers, AMD

RAM: 4 GB, DDR2, Producer Kingston

Hard Disk: 500 GB, 7200 RPM, Maxtor

Motherboard: AMD, 2011, Chipset AMD970, 6 USB ports, Max. 32 GB of RAM.

Second computer:

CPU: 4 GHz, CISC, 32 bit, 32 registers, INTEL

RAM: 8 GB, DDR3, Producer Kingston

Hard Disk: 1000 GB, 7200 RPM, Seagate

Motherboard: MSI, 2011, Chipset Intel Z77, 6 USB ports, Max. 64 GB of RAM.

b. Write a method through which we can change the CPU clock frequency of a computer. Use this method in your test program.

c. Put the computers in one of the indexed data structures of Java that you have learned.

d. Print the information of all the computers from the data structure using the toString( ) method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!