Question
Write a C# GUI application that calculates how much tile is needed to tile a room. A room requires one box of tile for every
Write a C# GUI application that calculates how much tile is needed to tile a room. A room requires one box of tile for every 12 full square feet, plus a box for any partial square footage, plus one extra box for waste from irregular cuts. Create a Room class according to the UML diagram below. 1. Has a field named _name of type string 2. Has a field named _width of type int 3. Has a field named _length of type int 4. Has a field named _area of type int 5. Has a field named _boxes of type int 6. Has a single constructor that takes a name, width, and length 7. Has a method that named Display() that returns a string in the format "{name} ({width}x{length}) needs {boxes} boxes" 8. Has a readonly property named Name 9. Has a readonly property named Width 10.Has a readonly property named Length 11.Has a readonly property named Area 12.Has a readonly property named Boxes The user can enter up to 20 rooms. Each time the user presses the add button: 1. A new Room object should be created 2. The Room should be added to an array of Room objects 3. Displays the Room in the output 4. Clears out the text fields and sets the focus to the name field
Room name: String width int ength int area int boxes int +constructor Room( name String, width: int, longth int + Display String t Name String + Width int + Length int +Area int + Boxes int get get get got get Tiling Estimator Nome Width Length Kitchen Rooms: 2/20 Total Boxes Needed: 27 Living Room (12x20) needs 21 boxes Office (10x5) needs 6 boxesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started