subject

ANSWER MUST BE IN C#

Create a program named PaintingDemo that instantiates an array of eight Room objects and demonstrates the Room methods.

The Room constructor requires parameters for length, width, and height fields (all of type int); use a variety of values when constructing the objects.

The Room class also contains the following fields:

Area - The wall area of the Room (as an int)

Gallons - The number of gallons of paint needed to paint the room (as an int)

Both of these values are computed by calling private methods. Include read-only properties to get a Room’s values.

A room is assumed to have four walls, and you do not need to allow for windows and doors, and you do not need to allow for painting the ceiling. A room requires one gallon of paint for every 350 square feet (plus an extra gallon for any square feet greater than 350). In other words, a 12 x 3 x 10 room with 9-foot ceilings has 396 square feet of wall space, and so requires two gallons of paint.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:00
Which factor is the most important when choosing a website host? whether customers will make secure transactions the number of email accounts provided the purpose of the website the quality of the host control panel
Answers: 3
question
Computers and Technology, 23.06.2019 01:00
Write the command that can be used to answer the following questions. (hint: try each out on the system to check your results.) a. find all files on the system that have the word test" as part of their filename. b. search the path variable for the pathname to the awk command. c. find all files in the /usr directory and subdirectories that are larger than 50 kilobytes in size. d. find all files in the /usr directory and subdirectories that are less than 70 kilobytes in size. e. find all files in the / directory and subdirectories that are symbolic links. f. find all files in the /var directory and subdirectories that were accessed less than 60 minutes ago. g. find all files in the /var directory and subdirectories that were accessed less than six days ago. h. find all files in the /home directory and subdirectories that are empty. i. find all files in the /etc directory and subdirectories that are owned by the group bin."
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
In vista and windows 7, the appearance and personalization option allows you to change the
Answers: 1
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
You know the right answer?
ANSWER MUST BE IN C#

Create a program named PaintingDemo that instantiates an array of e...
Questions
question
Mathematics, 09.03.2021 22:50
question
Mathematics, 09.03.2021 22:50
question
Mathematics, 09.03.2021 22:50
Questions on the website: 13722362