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 23:30
For her science class, elaine is creating a presentation on weather in the united states. she wants to make the presentation beautiful and interesting by drawing simple cloud or wave shapes. which is the best way for elaine to draw these shapes?
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
In a heat transfer course, we can derive the equation for the temperature distribution in a flat rectangular plate. in this example, we will look at a plate at steadystate with three sides being held at t1, and one side held at t2. the temperature for any location on the plate, t(x,y), can be calculated by where create a function (prob3_5) that will take inputs of vectors x and y in feet, scalar n, scalars l and w in feet and scalars t1 and t2 in degrees fahrenheit. it will output a matrix t which is the temperature of each x and y locations. t will have the number of columns equal to the number of elements in x and rows equal to the number of elements in y. though this can be done without loops (perhaps more efficiently), your program must use a nested loop.
Answers: 2
question
Computers and Technology, 25.06.2019 07:00
How do the portrait and landscape page orientations in the process of printing a worksheet?
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.02.2022 14:00
question
Mathematics, 07.02.2022 14:00
question
English, 07.02.2022 14:00
question
Mathematics, 07.02.2022 14:00
question
Social Studies, 07.02.2022 14:00
question
Mathematics, 07.02.2022 14:00
question
Mathematics, 07.02.2022 14:00