1. Engineering
  2. Computer Science
  3. c programming...

Question: c programming...

Question details
C# programming
Create a new C# console application. Be sure to have proper try/catch blocks around all of your code. Errors should write to your log file. Accomplish the following tasks: . Create a Person class (as its own class file: Person.cs)with the following properties: Prefix: string (Mr., Ms., Dr., etc.) (optional); more precisely this is called honorific but well use prefix o o First Name: string o Middle Name: string (optional) o Last Name: string o Suffix: string (Sr., Jr, I, III, etc.) (optional) o GenderType: Enumeration (Unknown-0, Female 1, Male-2, Transgender-3); we havent covered enumerations yet so youll have to do some research on this Read-only Gender: string (displays Unknown, Female, Male, Transgender based on the GenderType property DOB: Date (Date of birth); ensure you dont include the time for this; only the date Address: (another class) SSN: string Read-only Age property: Byte; this will get the age based on the DOB Read-only FullNameForward property: string (make sure your code ignores optional properties that are not used); use string.Concat(); this will return Mr. Frankie B. Baker Jr. if all properties are populated; Read-only FullNameBackward property: string (make sure your code ignores optional properties that are not used); use string.Concat(); this returns Baker Jr., Frankie B. if all properties are populated; o o o o o o o Create an Address class (as its own class file: Address.cs) with the following properties o Address1: string o Address2: string (optional) o City: string o State: string o Zip: string o Read-only FullAddress property: string (make sure your code ignores optional properties that are not used); use string.Concat() 100 Oak St., Suite 3B, Cincinnati, OH 45223-8841 In the Main() method of your Program.cs, create a new Person object and populate each property with sample/test data. Use appropriate sample/test data. Example:
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution