Question: C# .NET Programming : The purpose of the project is to do the following: Prompt the user for the number of ROOMs (as in, a
C# .NET Programming: The purpose of the project is to do the following:
Prompt the user for the number of ROOMs (as in, a house), then prompt the user for the name, length, and width for each room, and store each ROOM OBJECT in a generic collection. Then, display the internal state of each room, and compute and display the total square feet and average square feet for the rooms.
Create a ROOM class, with all appropriate member variables, constructors,
accessors, mutators
Declare and instantiate a GENERIC LIST to contain a collection of ROOM objects
Declare all necessary variables for storing the user's input for a room's name, length,
and width, AS WELL AS the total square feet, and average square feet (of the rooms)
Prompt the user for the number of rooms that will be entered
Prompt the user for the name, length and width for each room, and instantiate each
room, and add it to the GENERIC COLLECTION
Remember to leave the cursor at the end of the prompt line for a neat appearance
Remember to use a carriage return/linefeed in the output to move the cursor down
to the next line
After entering all rooms, loop through
to the next line
After entering all rooms, loop through the ROOM collection, displaying the internal
state of each room (using TOSTRING), and add up the total square feet
Finally, display the total square feet and average square feet
The output must match the screenshot exactly (except for the actual values that
might be entered)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
