Question: Write a complete Java program and design a class named Computer which has ( HDD , Ram , and CPU. ) The RAM is a

Write a complete Java program and design a class named "Computer" which has(HDD,Ram, and CPU.)
The RAM is a data field in the Computer class to represent the size of the memory.
This class helps the users to estimate the price of a computer, based on Hard Disk Drive class and CPU Class.
Overload the toString in the Class Computer to print the total Price.
1-Hard Disk Drive class, which includes these attributes:(HDD type -SSD or Physical-Drive, Size, and Speed).
Add setters and getters for Hard Disk Drive class.
Use the following information to help you to calculate the cost of the HDD:
Seagate Hard Drive Prices By Size
DRIVE SIZE MODEL PRICE COST/GB
1TB ST1000DM010$49.99$0.050
2TB ST2000DM006$66.99$0.033
3TB ST3000DM008$83.72$0.028
4TB ST4000DM005$99.99$0.025
6TB ST6000DM004$240.00$0.040
8TB ST8000DM005$307.34$0.038
2-CPU class, which includes these attributes (CPU speed, CPU cache memory size, price).
Add setters and getters for CPU class.
In the main Create a menu for the user to choose the computer options in the main
In the main class create one object of type Computer and display the total price based on the user input.

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!