Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedplz 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 scenario

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions