Computers and Technology
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()

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:20, vuqepete4528
Shown below is the start of a coding region within the fist exon of a gene. 5'--3' 3'--5' how many cas9 pam sequences are present?
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, alexdub9649
What is a costume plot? why is it important to a film or theater production?
Answers: 2
image
Computers and Technology, 22.06.2019 20:30, fickllyd000
In this lab, you complete a prewritten c program that calculates an employee’s productivity bonus and prints the employee’s name and bonus. bonuses are calculated based on an employee’s productivity score as shown below. a productivity score is calculated by first dividing an employee’s transactions dollar value by the number of transactions and then dividing the result by the number of shifts worked.
Answers: 3
image
Computers and Technology, 24.06.2019 11:00, zeesharpe05
These statements describe lists in presentation programs: a. bullets can be turned off and on. b. bullets cannot be turned off. c. bullet styles, colors, and sizes can be changed. d. lists don't have to use bullets or numbers. e. numbering styles, colors, and sizes can be changed. f. numbers can be turned off and on. g. numbers cannot be turned off. select all that apply
Answers: 2
Do you know the correct answer?
Can someone me with this c++ programming assignment . i have provided some partial code at the bott...

Questions in other subjects:

Konu
Mathematics, 13.01.2021 19:40
Konu
Mathematics, 13.01.2021 19:40
Konu
Mathematics, 13.01.2021 19:40