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, 22.06.2019 04:40
Amain idea is supported, explained, or expanded on with a numbers b. a concluding statement c. details d. a topic sentence. im e paragraphs reset nex next
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 23.06.2019 20:30
What is the biggest difference between section breaks and regular page breaks
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
Biology, 25.02.2021 03:40
question
Mathematics, 25.02.2021 03:40
question
History, 25.02.2021 03:40
Questions on the website: 13722363