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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Active listen eliminates barries to communication true or false
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
What does a cascading style sheet resolve a conflict over rules for an element? a. the rule affecting the most content wins b. the rule affecting the most content loses c. the rule with the most specific selector loses d. the rule with the most specific selector wins
Answers: 2
question
Computers and Technology, 22.06.2019 21:30
How do you take a green screen out of the video while editing?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
What are the 12 colors of the spectrum called?
Answers: 1
You know the right answer?
Given the following declaration for a class that represents a computer in a company's inventory, wri...
Questions
Questions on the website: 13722367