Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 hasHDDRam 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.
Hard Disk Drive class, which includes these attributes:HDD type SSD or PhysicalDrive, 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 COSTGB
TB STDM$$
TB STDM$$
TB STDM$$
TB STDM$$
TB STDM$$
TB STDM$$
CPU class, which includes these attributes CPU speed, CPU cache memory size, price
Add setters and getters for CPU class.
In the main class Create a menu for the user to choose the computer options from Hard Disk Drive class and CPU class
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started