Answered step by step
Verified Expert Solution
Question
1 Approved Answer
VISUAL STUDIO (C#) My requisite lab 5. Design a system for users to input their names and other details (as in Lab 5) and select
VISUAL STUDIO (C#)
My requisite lab 5.
Design a system for users to input their names and other details (as in Lab 5) and select a condominium with or without amenities from a combo box or a type of house from another combo box. If a customer chooses Condominium as a property of interest, then he/she can choose how many beds and baths (max. beds are 2 and max. baths are 1.5) they want and also whether they want amenities or not. Amenities are general facilities and services like swimming pools, gym, party rooms, visitor parking and many more that are available for the use of residents. Here is the price list. Base condominium price = $600 Amenities = $150 Beds and baths = same amount as in lab 5 $300/Bedroom $75/Bath X x - Property for Rent Buyer's Information Property for Rent Buyers Infomation First Marne Tipe Pepe Buy Tiped Property Condominium By Beste House Clear Last Name Condomu Last Name Ext Town House Tour Home Seme-Deached Detached Condommen Whostamenties Town House Without mentes with amenities Bed and Baths Beds and Baths of Bedrooms 1 Roon 2 Home 3 rooms 4 Home Bish 1 015 02 O 25 of Bedrooms 1 Room O2 Roone Ed Baths 1 015 This time you should be using inheritance. Think about common fields and methods among house and condominium objects. You may need to make some changes to Property class. Use Lab 5 as a starting point. Add radio buttons to control the activation of the correct set of controls for the type of property the user wants to choose. If you choose Condominium, maximum availability for number of beds and baths is 2 and 1.5 respectively. Check the screen shot. Also add a combo box to your form to allow the user to select amenities option from a drop down list. Add another combo box to allow the user to select the type of house - town, semi or detached. Once the customer is done with filling the details and options for property lookup, a label should display the customer and property details along with total rent. Property for Rent Buyer's Information First Name: Kate Type of Property Condominium Buy House Clear Last Name: Eylles House Condominium With amenities Exit Town House # of Baths 01 Beds and Baths # of Bedrooms O 1 Room 2 Rooms 3 Rooms 4 Rooms Thank you Kate Eylles You have rented Condominium(With amenities) with 2 bedrooms and 1.5 bathrooms for the monthly rent of $1,462.50!! 1.5 2 2.5 - You'll need to modify your Class Library to accommodate this new type of property. - Use a combo box and set the DropDownStyle property to DropDownList'. - Use an if statement or switch case to determine whether amenities are chosen or not. - Make sure you follow the GUI design guidelines on this assignment. That means accelerators, tab stops. - Use our naming conventions for all controls, variables and constants. - Be sure to include comments. - Code formatting is also worth marks. Properties H-1 References App.config Form1.cs Form1.Designer.cs Form1.resx D C# Program.cs C# Property Classes Properties >> -- References D C# Buyer.cs D C# Proferty.cs C# Rent.cs A TypeOfHouse x Ferml.es Form1.cs (Design) Classes PropertyClasses.Property using System.Text; using System.Threading.Tasks; Enamespace PropertyClasses 3 references public class Property references public int NumOf Bedrooms (get; set; } 3raterences public double NumOf Bathrooms { get; set; } Braces public string TypeOf House { get; set; } private const int BEDPRICE - 380; private const int BATHPRICE - 75; private const double TOWN_COST = 500; private const double SEMI COST - 700; private const double DETACHED_COST - 1000; public double Cost { get; set; } frente public Property(int beds, double baths, string type) NunOfBedrooms - beds; NunofBathrooms - baths TypeofHouse = type; sdtch (Typeof House) case "Town: Cost - TOWN_COST: break; case Semi-Detached": Cost - SEMI_COST: laissues found in 52 Ch: 1 SPC PropertyClasses.Property TypeOfHouse switch (TypeofHouse) case Town": Cost - TOWN COST; break; case "Semi-Detached": Cost - SEMI_COST; break; case "Detached": Cost - DETACHED_COST; break; forence public double CalculateRent() return (NumOf Bedrooms . BEDPRICE) + (NumOfBathrooms BATHPRICE) + Cost; } A references public override string ToString() { return " You have rented a " + TypeOf House + house with + NumOf Bedrooms + " bedroom() and 1 + NumofBathr bathroom(s) for the monthly rent of " + Calcu CalculateRent().ToString(""); Nous found Any CPU Start * $ Property Classes Rent Buyer 2-0 Debug Forml.es Form1.cs (Design! tyClasses using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PropertyClasses Irurance public class Rent { 2 references public Buyer Buyer (get; set; } 2.rferences public Property MyProperty { get; set; } 1/constructor version for house france public Rent(string frame, string lName, string type, int beds, double baths) Buyer = new Buyer (flame, IName); MyProperty = new Property (beds, baths, type); 3 public override string ToString() return Buyer.ToString() + MyProperty.ToString(); No issues found House for Rent Buyer's Information Type of Property O Condominium Buy First Name: House Clear Last Name: Condominium House Exit Beds and Baths Erase this text # of Baths # of Bedrooms 1 Room 2 Rooms O 3 Rooms 4 Rooms 1 O 1.5 O2 O 25 Design a system for users to input their names and other details (as in Lab 5) and select a condominium with or without amenities from a combo box or a type of house from another combo box. If a customer chooses Condominium as a property of interest, then he/she can choose how many beds and baths (max. beds are 2 and max. baths are 1.5) they want and also whether they want amenities or not. Amenities are general facilities and services like swimming pools, gym, party rooms, visitor parking and many more that are available for the use of residents. Here is the price list. Base condominium price = $600 Amenities = $150 Beds and baths = same amount as in lab 5 $300/Bedroom $75/Bath X x - Property for Rent Buyer's Information Property for Rent Buyers Infomation First Marne Tipe Pepe Buy Tiped Property Condominium By Beste House Clear Last Name Condomu Last Name Ext Town House Tour Home Seme-Deached Detached Condommen Whostamenties Town House Without mentes with amenities Bed and Baths Beds and Baths of Bedrooms 1 Roon 2 Home 3 rooms 4 Home Bish 1 015 02 O 25 of Bedrooms 1 Room O2 Roone Ed Baths 1 015 This time you should be using inheritance. Think about common fields and methods among house and condominium objects. You may need to make some changes to Property class. Use Lab 5 as a starting point. Add radio buttons to control the activation of the correct set of controls for the type of property the user wants to choose. If you choose Condominium, maximum availability for number of beds and baths is 2 and 1.5 respectively. Check the screen shot. Also add a combo box to your form to allow the user to select amenities option from a drop down list. Add another combo box to allow the user to select the type of house - town, semi or detached. Once the customer is done with filling the details and options for property lookup, a label should display the customer and property details along with total rent. Property for Rent Buyer's Information First Name: Kate Type of Property Condominium Buy House Clear Last Name: Eylles House Condominium With amenities Exit Town House # of Baths 01 Beds and Baths # of Bedrooms O 1 Room 2 Rooms 3 Rooms 4 Rooms Thank you Kate Eylles You have rented Condominium(With amenities) with 2 bedrooms and 1.5 bathrooms for the monthly rent of $1,462.50!! 1.5 2 2.5 - You'll need to modify your Class Library to accommodate this new type of property. - Use a combo box and set the DropDownStyle property to DropDownList'. - Use an if statement or switch case to determine whether amenities are chosen or not. - Make sure you follow the GUI design guidelines on this assignment. That means accelerators, tab stops. - Use our naming conventions for all controls, variables and constants. - Be sure to include comments. - Code formatting is also worth marks. Properties H-1 References App.config Form1.cs Form1.Designer.cs Form1.resx D C# Program.cs C# Property Classes Properties >> -- References D C# Buyer.cs D C# Proferty.cs C# Rent.cs A TypeOfHouse x Ferml.es Form1.cs (Design) Classes PropertyClasses.Property using System.Text; using System.Threading.Tasks; Enamespace PropertyClasses 3 references public class Property references public int NumOf Bedrooms (get; set; } 3raterences public double NumOf Bathrooms { get; set; } Braces public string TypeOf House { get; set; } private const int BEDPRICE - 380; private const int BATHPRICE - 75; private const double TOWN_COST = 500; private const double SEMI COST - 700; private const double DETACHED_COST - 1000; public double Cost { get; set; } frente public Property(int beds, double baths, string type) NunOfBedrooms - beds; NunofBathrooms - baths TypeofHouse = type; sdtch (Typeof House) case "Town: Cost - TOWN_COST: break; case Semi-Detached": Cost - SEMI_COST: laissues found in 52 Ch: 1 SPC PropertyClasses.Property TypeOfHouse switch (TypeofHouse) case Town": Cost - TOWN COST; break; case "Semi-Detached": Cost - SEMI_COST; break; case "Detached": Cost - DETACHED_COST; break; forence public double CalculateRent() return (NumOf Bedrooms . BEDPRICE) + (NumOfBathrooms BATHPRICE) + Cost; } A references public override string ToString() { return " You have rented a " + TypeOf House + house with + NumOf Bedrooms + " bedroom() and 1 + NumofBathr bathroom(s) for the monthly rent of " + Calcu CalculateRent().ToString(""); Nous found Any CPU Start * $ Property Classes Rent Buyer 2-0 Debug Forml.es Form1.cs (Design! tyClasses using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace PropertyClasses Irurance public class Rent { 2 references public Buyer Buyer (get; set; } 2.rferences public Property MyProperty { get; set; } 1/constructor version for house france public Rent(string frame, string lName, string type, int beds, double baths) Buyer = new Buyer (flame, IName); MyProperty = new Property (beds, baths, type); 3 public override string ToString() return Buyer.ToString() + MyProperty.ToString(); No issues found House for Rent Buyer's Information Type of Property O Condominium Buy First Name: House Clear Last Name: Condominium House Exit Beds and Baths Erase this text # of Baths # of Bedrooms 1 Room 2 Rooms O 3 Rooms 4 Rooms 1 O 1.5 O2 O 25 Step 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