Answered step by step
Verified Expert Solution
Question
1 Approved Answer
plz solve this qs 6. Suppose you are an owner of a desktop computer store. Clients usually visits your store [CO3,C3, to by computer and
plz solve this qs
6. Suppose you are an owner of a desktop computer store. Clients usually visits your store [CO3,C3, to by computer and related accessories. To simplify your task, you have requested a Mark: 7] computer programmer to write an application with the following specifications. The programmer will write a Computer class having attributes: mouse (String type), keyboard (String type), monitor (String Type), a inner class CPU and a method printComputer() that will print the details of the computer. The class CPU contains attributes: clockSpeed (double type), lanCard(String type) and another two inner class Processor and RAM. The processor class contains attributes: cores(int type: the number of cores on the processor), manufacturer(String type: contain the manufacturer name, for example: intel, gigabyte, msi) and a method getCache() that returns the cache memory size. The RAM class contains attributes: memory(double type: size of the RAM in megabyte), and the manufacturer(String type). Write another Computer Demo that has the main function and create two instances of the computer class. Print the instances of the computer classes using printComputer() method. Design a JAVA application that can perform the task as given in the above scenarioStep 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