subject

Construct a class named room (in a separate file set, 1 point) that declares two double-precision data members named length and width, and a string data member for the description of the room (1 point). include constructor that initializes each double data member to 1.0 and the string as "room" when a room object is created (1 point). add accessor, mutator and display functions (1 point).

use this class to:

a) create four room objects: hall (length=12.40, width=3.5), kitchen (length=14, width=14), living room (length=12.4, width=20), dining room (length=14, width=10.5) and display each room (1 point)
b) create an array of pointers to room and assign each element in the array to a dynamic object (hint: use operator new) where the values are copied from the objects created in step a (hint: use the = operator ) (1 point)

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 20:20
Wireless communications is likely to be viewed as an essential part of an enterprise network infrastructure when: select one: a. mobile communication is needed b. communication facilities must be installed at low initial cost c. communication must take place in a hostile or difficult terrain that makes wired communication difficult or impossible d. the same information must be broadcast to many locations
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
Whats are the different parts of no verbal comunication, especially body language?
Answers: 3
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
The basic work area of the computer is it screen that you when you first fire up your computer
Answers: 1
You know the right answer?
Construct a class named room (in a separate file set, 1 point) that declares two double-precision da...
Questions
question
Mathematics, 07.04.2020 17:25
question
Mathematics, 07.04.2020 17:25
question
Mathematics, 07.04.2020 17:25
Questions on the website: 13722359