Question: This is for C#. Please answer the code questions Questions: using static System.Console; class PaintintDemo static void Main() Room[] rooms = new Room[8]; int x,
This is for C#. Please answer the code questions

Questions:
![System.Console; class PaintintDemo static void Main() Room[] rooms = new Room[8]; int](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3c41d4efca_48466f3c41cc0a06.jpg)
using static System.Console; class PaintintDemo static void Main() Room[] rooms = new Room[8]; int x, len = 12, wid = 10, high 9; for(x 0; x rooms. Length; ++x) high); rooms [x] = new Room(len, len += 2; wid += 1; if(x % 2-1) wid, high +1; for(x 0; x rooms. Length; ++x) WriteLine("Room 13. For a 0 X 1) X f2} foot room", rooms [x]. Length, rooms [x].Width, rooms[x].Height, x+1); WriteLineTwo walls are o long and (1} high", rooms[x]. Length, rooms[x].Height); WriteLine(" WriteLineTotal wall area is 0, so you need 1 gallon(s) of paint.", rooms[x].Area, rooms [x].Gallons); WriteLine); and the other two walls are e long and (1} high", rooms [x].Width, rooms [x].Height); class Room int length, width, height, area, gallons; public Room(int len, int wid, int high) length Ien; width wid; height = high; ComputeArea); ComputeGallons (); public double Length get return length; public int public int public int public int private void ComputeArea() { area length * height * 2 + width * height * 2; } private void ComputeGallons() get f return width; Height get return height Area { get { return area; Gallons get return gallons; const int GALS-PER-SQFT = 350; gallons = area GALS PER SO FT; if(area % GALS-PER-SOFT != 0) gallons++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
