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, 23.06.2019 10:20
Suppose there is a relation r(a, b, c) with a b+-tree index with search keys (a, b).1. what is the worst-case cost of finding records satisfying 10 < a < 50 using this index, in terms of the number of records n1, retrieved and the height h of the tree? 2. what is the worst-case cost of finding records satisfying 10 < a < 50 and 5 < b < 10 using this index, in terms of the number of records n2 that satisfy this selection, as well as n1 and h defined above? 3. under what conditions on n1 and n2, would the index be an efficient way of finding records satisfying the condition from part (2)?
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
What are two ways to access the options for scaling and page orientation? click the home tab, then click alignment, or click the file tab. click the file tab, then click print, or click the page layout tab. click the page layout tab, or click the review tab. click the review tab, or click the home tab?
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
Distinguish between a skill resume and a chronological resume and explain when it is best to use each format
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