subject

Given the following declaration for a class that represents a computer in a company's inventory, write a derived class declaration (for a class called installrecord) that adds (1) a string field representing the location of the computer and (2) a field of class simpledate that holds the installation date. the new class should provide observers for each of the new fields. it should also re implement the write function.

class computer

computer(string newname, string newbrand, string newmodel, int newspeed, string newserial, int newnumber);

string getname() const;

string getbrand() const;

string getmodel() const;

int getspeed() const;

string getserial() const;

int getnumber() const;

void write() const;

private

string name;

string brand;

string model;

int speed;

string serialnumber;

int inventorynumber;

use the computer and installrecord classes, together with the sortedlist class developed in chapter 13 (of book "programming and problem solving with c++"), as the basis for an object-oriented program that keeps track of a company's computer inventory. the company has at most 500 computers. the following operations should be supported:

add a new computer to the list.

delete a computer from the list.

change the location of a computer.

print a list of all computers in inventory-number order.

print a list of all computers in a given location.

print a list of all computer of a particular brand.

print a list of all computer installed before a given date.

the application should keep the list sorted by inventory number. it should read an initial list from a file called orginal. dat. at the end of processing, it should write the current data in the list onto a file called update. dat in a format that could be read back in by the program as an initial list. you will also need to develop the simpledate class to the degree necessary to support the application.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:00, shadow56
Formula that contains a nested function that first calculates the average of the values in range e6: p6 and uses the round function to round that average to the nearest 10 dollars. use -1 for the value of the number digit argument. would the formula be =round(average(e6: p6),0
Answers: 1
image
Computers and Technology, 22.06.2019 15:10, reycaden
David is in week 3 of his current ashford course and has a paper due by monday night at midnight. he has finished everything but the concluding paragraph. as he boots up his computer to work on it, he sees a flash across the screen and then the screen goes black. he begins to panic as he tries desperately to turn the laptop back on. david should have saved his work on what kind of portable device?
Answers: 2
image
Computers and Technology, 22.06.2019 16:20, Aleja9
It policy compliance and emerging technologies respond to the following: propose at least three control measures that organizations need to put in place to ensure that they remain complaint with emerging technologies and in a continually changing it environment. examine the correlation of effective configuration management and change control procedures to remain compliant with emerging technologies and it security changes.
Answers: 2
image
Computers and Technology, 22.06.2019 18:00, alyssacyamamoto8050
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
You know the right answer?
Given the following declaration for a class that represents a computer in a company's inventory, wri...

Questions in other subjects:

Konu
English, 18.10.2019 20:40