Computers and Technology, 12.11.2019 02:31 xxcecccc
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()
Answers: 3
Computers and Technology, 21.06.2019 17:00
How can data be added in a table by using what view
Answers: 1
Computers and Technology, 22.06.2019 14:20
Consider a byte-addressable computer with 16mb of main memory, a cache capable of storing a total of 64kb of data and block size of 32 bytes. (a) how many bits in the memory address? (b) how many blocks are in the cache? (c) specify the format of the memory address, including names and sizes, when the cache is: 1. direct-mapped 2. 4-way set associative 3. fully associative
Answers: 2
Computers and Technology, 24.06.2019 22:10
In command prompt, whats a command that will list only .ini files in c: \windows\system32 directory?
Answers: 1
Computers and Technology, 26.06.2019 03:40
1. when a program routine constantly looks a certain condition and executes a command when the condition is met, this is called: a. sampling b. polling c.interrupting d. triggering
Answers: 2
Can someone me with this c++ programming assignment . i have provided some partial code at the bott...
Biology, 21.05.2021 06:10
Mathematics, 21.05.2021 06:10
Mathematics, 21.05.2021 06:10
Mathematics, 21.05.2021 06:10
Computers and Technology, 21.05.2021 06:10
Mathematics, 21.05.2021 06:10
History, 21.05.2021 06:10
Mathematics, 21.05.2021 06:10
Mathematics, 21.05.2021 06:10