Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a complete Java program and design a class named Computer which has (HDD, Ram, and CPU.) This class helps the users to estimate the

image text in transcribed

Write a complete Java program and design a class named "Computer" which has (HDD, Ram, and CPU.) This class helps the users to estimate the price of a computer, based on its specifications. Represent the following items as classes: 1- Hard Disk Drive class, which include these attributes: (HDD type - SSD or Physical-Drive, Size, and Speed). Use the following information to help you to calculate the cost for the HDD: Seagate Hard Drive Prices By Size 2- CPU class, which includes these attributes (CPU speed, CPU cache memory size, price). Note: Do your research and put the right price for the CPU. * The Ram is a data field in the Computer class to represent the size of the memory. Add setters and getters for all of these classes. * Overload the toString in the Class Computer to print the total Price. In the main create one object of type Computer and display the total price based on the user input. Note: You should display a menu to the user to chose the computer options. Please do not forget to upload the screenshots of your output and the UML

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What are the functions of top management?

Answered: 1 week ago

Question

Bring out the limitations of planning.

Answered: 1 week ago

Question

Why should a business be socially responsible?

Answered: 1 week ago

Question

Discuss the general principles of management given by Henri Fayol

Answered: 1 week ago

Question

Identify how culture affects appropriate leadership behavior

Answered: 1 week ago