Assignment 4 C#
Assignment 4 C#
Assignment 4
(Total marks: 20, weight: 5%)
A Real Estate Agency needs Management System that records the details about their offers: houses and apartments
In this project, you will be using object-oriented programming concepts and design in total four classes:
In this assignment 3, you will implement two classes named Residence and Address
In the next assignment, you will design two other classes: House, and Apartment.
The following diagram shows the relationships between these classes you are required to implement.
In this assignment, you will implement Address and Residence classes. The Residence class is the parent
class of apartment and House classes.
Consider the following UML class diagram:
Example of data:
Street: 265 Yorkland Blvd.
City: Toronto
State: Ontario
zipCode: M2J 1S5
- CalculateCommission() that returns the commission amount. The commission rate is set up at
2.8%.
- ToString() that returns the information about the current object( price, yearBuilt, etc.).
In main method, you already created an instance of Address class called Address and prompted the
user to enter the address details.
1. Now prompt the user to enter the price, square Feet and year built.
Javeria Aamir C# Programming
2. Create an instance of the residence class with the entered data (including the address data).
3. Display the information about the residence using ToString().