Question
Create a windows application that defines a class Person The Person object has the following private fields _firstname, _lastname, List emails (a list of emails),
Create a windows application that defines a class Person The Person object has the following private fields _firstname, _lastname, List
Add constructor to initialize firstname, lastname and dateofbirth Add properties for Firstname,Lastname,Dateofbirth Add properties to return string[] array for EmailsList, CellPhonesList
Add methods: AddCellPhone(string phone) to add a new cellphone to the list AddEmail(string email) to add a new email to the list Add also methods: public int GetAge() that compute and returns the age of the person in years public int GetDaysUntilNextBirthday() that computes and returns the number of days until the next birthday of this person
in Form1: create a List
in Form_Load: prepopulate the List
Have a listbox to display each person (first name last name and birthdate) when the user select a person display (in a richtextbox) this person's emails, cellphones, age and number of days until next birthdate
*****Additionals
Provide GUI to allow a user to add new or delete an old email to/from the selected person Provide GUI to add a new or delete an old cellphone number of the selected person
you will have to add methods that removes a cellphone and removes an email
In the previous question I forgot to specify this is in C#.
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