Computers and Technology

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)

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 22:10, Metlife
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
image
Computers and Technology, 23.06.2019 03:00, Julianhooks
State 7 common key's for every keyboard
Answers: 1
image
Computers and Technology, 24.06.2019 21:50, carter4026
The use of phrases, fragments, and punctuation can influence the mood of a passage; keeping this in mind, how would you describe the mood of the followingpassage? "fog on the essex marshes, fog on the kentish heights, fog creeping into the cabooses of collier-brigs; fog lying out on the yards, and hovering in the riggingof great ships; fog drooping on the gunwales of barges and small boats. fog in the eyes and throats of ancient greenwich pensioners, wheezing by thefiresides of their wards; fog in the stem and bowl of the afternoon pipe of the wrathful skipper; fog cruelly pinching the toes and fingers of his shivering little'prentice boy on deck." (5 points)
Answers: 2
image
Computers and Technology, 25.06.2019 00:00, ddatsman1730
One difference of input method between most desktop computers and most tablets is the memory the touch screen the speech recognition
Answers: 1
Do you know the correct answer?
Construct a class named room (in a separate file set, 1 point) that declares two double-precision da...

Questions in other subjects: