subject

Can someone me with this c++ programming assignment . i have provided some partial code at the bottom but i need to add some functions listed below. i have to create two different classes.

the assignment consists of the construction of 2 new classes to work with the driver file. you need to create a cpu. h file that declares all instance variables and functions of the class cpu, and a cpu. cpp file that implements all the functions of the class cpu. you also need to create a computer. h file that declares all instance variables and functions of the computer class, and a computer. cpp file that implements all functions of the class computer.

cpu class

the cpu class describes the cpu of a computer. it has the following attributes and should be declared using private: type(string) and speed (int). all functions should be declared using public. the following constructor should be provided to initialize each attribute:

cpu() this constructor initializes type to "? " and speed to 0.

the destructor ~cpu() should be provided to display the following:

cpu with the type pentium2 and the speed 200 is being destroyed. where pentium2 is a value the variable "type" contains and 200 is a value that the variable "speed" contains.

the following accessor functions should be provided to get the attributes:

string gettype()

int getspeed()

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 23.06.2019 20:10
Leo is a recruitment executive for a large company. he has identified new labor resource requirements in both the marketing and production departments. what should be his first step in recruiting candidates for the positions? a. conduct background checks of candidates b. make job offers c. arrange interviews d. conduct reference checks e. place job ads on job sites
Answers: 1
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
You know the right answer?
Can someone me with this c++ programming assignment . i have provided some partial code at the bott...
Questions
question
Mathematics, 08.04.2021 19:00
question
Health, 08.04.2021 19:00
Questions on the website: 13722360