Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 emails (a list of emails), List cellphones (a list of cellphones) and _dateOfBirth (of type DateTime)

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 to hold multiple people

in Form_Load: prepopulate the List with at least 7 people and to each person add at least 2 emails and 2 cellphones

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions