Question: You will create a class to define the object Person. You should populate the person class with the following properties: Attributes ( and associated properties

You will create a class to define the object Person. You should populate the person class with the
following properties:
Attributes (and associated properties to get/set their values) to store:
First Name
Last Name
Day of Birth
Month of Birth
Year of Birth
Age
Constructors to set:
Nothing (the default constructor)
All Attributes
First Name and Last Name
First Name, Last Name, and Age
Public Methods to calculate and return:
Whether or not the person is an adult (true or false)
The Western Sun sign of the person
The Chinese Astrological sign of the person
After designing the class, you should create a program in your Main method to test the functionality of
the class. Attempt to be thorough try to break your code, and if you can, fix it.
For instance, I may try to create an instance of the class for a person using a constructor that does not
set a date of birth. In this case, if I attempt to determine the individuals Sun sign, I should receive
something indicating the error, not a crashing program.
You will be graded both on the correctness of your class, as well as on your testing Main method. Im
leaving this one largely up to you, but please ask questions as necessary to understand the material.
Please be detailed on c# code and all the outputs that this code requires. If you can explain step by step. Thank you

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!