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 05:30
Gerard is currently working as an entry-level customer support technician, but he would like to someday become a software developer. what is the best first step to understand what he should do? ask his manager for a new job or at least a job recommendation study graphic design in order to obtain the necessary skills use career resources to investigate what skills and education are required work part-time as an entry-level web developer question 13 (true/false worth 6 points) (08.03 lc) career resources are used to explore career options and find career information. true false question 14(multiple choice worth 6 points) (08.01 mc) classify the following skills: writing html code, evaluating color theory, using design principles. hard skills interpersonal skills people skills soft skills question 15 (true/false worth 6 points) (08.03 lc) a mentor is a person who is advised, trained, or counseled by a trusted mentee. true false
Answers: 2
question
Computers and Technology, 22.06.2019 18:00
Determine whether the following careers would require training or college.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Name the range function that would generate the following list of integers values: 0,1,2,3,4,5.
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
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
Questions on the website: 13722360