SlideShare a Scribd company logo
1 of 3
Download to read offline
Create a console application Customer Management with Classes and Delegate/Event
PLEASE DO THIS IN C#
1. Customer Class
Private variable
firstName, lastName, email, id
(you could use a phone number as id)
Constructor
Customer()
Customer(firstName, lastName, email, id)
Properties
FirstName,
LastName,
Email,
ID
Method
public string GetDisplayText()
2. CustomerList Class
Add the following members to the CustomerList class
Property (Read only)
Count
Indexer
[index]
Provides access to the Customer at the specified position.
public Customer this[int index]{...}
Method
Add(customer)
Remove(customer)
Delegate & Event
public delegate void ChangeHandler(CustomerList customers);
public event ChangeHandler ? Changed;
The event Changed uses the ChangeHandler delegate and should be raised any time the
customer list changes
3. Main Program
Allow a user to choose from the following options, then guide the user through the add or delete
functions. Make your application self-explanatory and user-friendly.
Option 1: Add a new customer
Option 2: Delete a customer
Option 3: Exit the program
Subscribe to the Changed event. Whenever there is a change in the CustomerList (add or delete),
display on the console the entire list of the customers with name, email and ID information
Private variable
firstName, lastName, email, id
(you could use a phone number as id)
Constructor
Customer()
Customer(firstName, lastName,
email, id)
Create a new Customer Objects
Properties
FirstName,
LastName,
Email,
ID
Customer information
Method
public string GetDisplayText()
Get the customer information (Name, Email, ID), and
return a string.
Create a console application Customer Management with Classes and Dele (1).pdf

More Related Content

Similar to Create a console application Customer Management with Classes and Dele (1).pdf

Unit iii vb_study_materials
Unit iii vb_study_materialsUnit iii vb_study_materials
Unit iii vb_study_materialsgayaramesh
 
Quick Guide to Get Started with ShoutOUT V4.0
Quick Guide to Get Started with ShoutOUT V4.0 Quick Guide to Get Started with ShoutOUT V4.0
Quick Guide to Get Started with ShoutOUT V4.0 Tharindu Dassanayake
 
Create an other activity lesson 3
Create an other activity lesson 3Create an other activity lesson 3
Create an other activity lesson 3Kalluri Vinay Reddy
 
06 win forms
06 win forms06 win forms
06 win formsmrjw
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshopdhi her
 
This assignment has two parts. The first part requires you to cr.docx
This assignment has two parts. The first part requires you to cr.docxThis assignment has two parts. The first part requires you to cr.docx
This assignment has two parts. The first part requires you to cr.docxgasciognecaren
 
Leverage StandardSetController in Apex and Visualforce
Leverage StandardSetController in Apex and VisualforceLeverage StandardSetController in Apex and Visualforce
Leverage StandardSetController in Apex and VisualforceSalesforce Developers
 
Computer-programming-User-defined-function-1.pptx
Computer-programming-User-defined-function-1.pptxComputer-programming-User-defined-function-1.pptx
Computer-programming-User-defined-function-1.pptxJohnRehldeGracia
 
Insert Your Name and ClassIT Online Training (ITOT) Analys.docx
Insert Your Name and ClassIT Online Training (ITOT) Analys.docxInsert Your Name and ClassIT Online Training (ITOT) Analys.docx
Insert Your Name and ClassIT Online Training (ITOT) Analys.docxdoylymaura
 
Insert Your Name and ClassIT Online Training (ITOT) Analys.docx
Insert Your Name and ClassIT Online Training (ITOT) Analys.docxInsert Your Name and ClassIT Online Training (ITOT) Analys.docx
Insert Your Name and ClassIT Online Training (ITOT) Analys.docxcarliotwaycave
 
Business App Programming Course Project
Business App Programming Course ProjectBusiness App Programming Course Project
Business App Programming Course ProjectCarmen Lampkin
 
Ventures Unlimited Product Overview Vtxt
Ventures Unlimited   Product Overview   VtxtVentures Unlimited   Product Overview   Vtxt
Ventures Unlimited Product Overview VtxtArun R
 
Project: Call Center Management
Project: Call Center ManagementProject: Call Center Management
Project: Call Center Managementpritamkumar
 
Visual Basic Review - ICA
Visual Basic Review - ICAVisual Basic Review - ICA
Visual Basic Review - ICAemtrajano
 

Similar to Create a console application Customer Management with Classes and Dele (1).pdf (20)

ax2012
 ax2012 ax2012
ax2012
 
Unit iii vb_study_materials
Unit iii vb_study_materialsUnit iii vb_study_materials
Unit iii vb_study_materials
 
Observer pattern
Observer patternObserver pattern
Observer pattern
 
Quick Guide to Get Started with ShoutOUT V4.0
Quick Guide to Get Started with ShoutOUT V4.0 Quick Guide to Get Started with ShoutOUT V4.0
Quick Guide to Get Started with ShoutOUT V4.0
 
Create an other activity lesson 3
Create an other activity lesson 3Create an other activity lesson 3
Create an other activity lesson 3
 
06 win forms
06 win forms06 win forms
06 win forms
 
Practicalfileofvb workshop
Practicalfileofvb workshopPracticalfileofvb workshop
Practicalfileofvb workshop
 
Observer pattern
Observer patternObserver pattern
Observer pattern
 
Create New Android Activity
Create New Android ActivityCreate New Android Activity
Create New Android Activity
 
This assignment has two parts. The first part requires you to cr.docx
This assignment has two parts. The first part requires you to cr.docxThis assignment has two parts. The first part requires you to cr.docx
This assignment has two parts. The first part requires you to cr.docx
 
Leverage StandardSetController in Apex and Visualforce
Leverage StandardSetController in Apex and VisualforceLeverage StandardSetController in Apex and Visualforce
Leverage StandardSetController in Apex and Visualforce
 
Computer-programming-User-defined-function-1.pptx
Computer-programming-User-defined-function-1.pptxComputer-programming-User-defined-function-1.pptx
Computer-programming-User-defined-function-1.pptx
 
Insert Your Name and ClassIT Online Training (ITOT) Analys.docx
Insert Your Name and ClassIT Online Training (ITOT) Analys.docxInsert Your Name and ClassIT Online Training (ITOT) Analys.docx
Insert Your Name and ClassIT Online Training (ITOT) Analys.docx
 
Insert Your Name and ClassIT Online Training (ITOT) Analys.docx
Insert Your Name and ClassIT Online Training (ITOT) Analys.docxInsert Your Name and ClassIT Online Training (ITOT) Analys.docx
Insert Your Name and ClassIT Online Training (ITOT) Analys.docx
 
Business App Programming Course Project
Business App Programming Course ProjectBusiness App Programming Course Project
Business App Programming Course Project
 
Ventures Unlimited Product Overview Vtxt
Ventures Unlimited   Product Overview   VtxtVentures Unlimited   Product Overview   Vtxt
Ventures Unlimited Product Overview Vtxt
 
Tutorials3
Tutorials3Tutorials3
Tutorials3
 
Intake 38 9
Intake 38 9Intake 38 9
Intake 38 9
 
Project: Call Center Management
Project: Call Center ManagementProject: Call Center Management
Project: Call Center Management
 
Visual Basic Review - ICA
Visual Basic Review - ICAVisual Basic Review - ICA
Visual Basic Review - ICA
 

More from AlexanderM4ZColemann

Create a complete class named Member- The Member class should include.pdf
Create a complete class named Member- The Member class should include.pdfCreate a complete class named Member- The Member class should include.pdf
Create a complete class named Member- The Member class should include.pdfAlexanderM4ZColemann
 
Create a class called teachers- for which assign the ID to be 400 and.pdf
Create a class called teachers- for which assign the ID to be 400 and.pdfCreate a class called teachers- for which assign the ID to be 400 and.pdf
Create a class called teachers- for which assign the ID to be 400 and.pdfAlexanderM4ZColemann
 
Create a Client-Server TCP application using Python (See slides from c.pdf
Create a Client-Server TCP application using Python (See slides from c.pdfCreate a Client-Server TCP application using Python (See slides from c.pdf
Create a Client-Server TCP application using Python (See slides from c.pdfAlexanderM4ZColemann
 
Crane provides shuttle service between 4 hotels near a medical center.pdf
Crane provides shuttle service between 4 hotels near a medical center.pdfCrane provides shuttle service between 4 hotels near a medical center.pdf
Crane provides shuttle service between 4 hotels near a medical center.pdfAlexanderM4ZColemann
 
Crane Inc- had the following transactions pertaining to investments in.pdf
Crane Inc- had the following transactions pertaining to investments in.pdfCrane Inc- had the following transactions pertaining to investments in.pdf
Crane Inc- had the following transactions pertaining to investments in.pdfAlexanderM4ZColemann
 
Craft ascript that- - displess the informationin Data to the CW as foa.pdf
Craft ascript that- - displess the informationin Data to the CW as foa.pdfCraft ascript that- - displess the informationin Data to the CW as foa.pdf
Craft ascript that- - displess the informationin Data to the CW as foa.pdfAlexanderM4ZColemann
 
Coyne Corporation recently hired Elaine Herrold as its new bookkeeper-.pdf
Coyne Corporation recently hired Elaine Herrold as its new bookkeeper-.pdfCoyne Corporation recently hired Elaine Herrold as its new bookkeeper-.pdf
Coyne Corporation recently hired Elaine Herrold as its new bookkeeper-.pdfAlexanderM4ZColemann
 
Courve- inscoteris- wedediat the red of thin chielec)res- fiure 12-11.pdf
Courve- inscoteris- wedediat the red of thin chielec)res- fiure 12-11.pdfCourve- inscoteris- wedediat the red of thin chielec)res- fiure 12-11.pdf
Courve- inscoteris- wedediat the red of thin chielec)res- fiure 12-11.pdfAlexanderM4ZColemann
 
Countries of the Gulf Cooperation Council (GCC) have grown dependent o.pdf
Countries of the Gulf Cooperation Council (GCC) have grown dependent o.pdfCountries of the Gulf Cooperation Council (GCC) have grown dependent o.pdf
Countries of the Gulf Cooperation Council (GCC) have grown dependent o.pdfAlexanderM4ZColemann
 
Countries that offer foreign firms a reduced set of environmental stan.pdf
Countries that offer foreign firms a reduced set of environmental stan.pdfCountries that offer foreign firms a reduced set of environmental stan.pdf
Countries that offer foreign firms a reduced set of environmental stan.pdfAlexanderM4ZColemann
 
could you provide the formula used to find the yearly avearge- seasona.pdf
could you provide the formula used to find the yearly avearge- seasona.pdfcould you provide the formula used to find the yearly avearge- seasona.pdf
could you provide the formula used to find the yearly avearge- seasona.pdfAlexanderM4ZColemann
 
could you please answer using excel formulas- A good stock-based mutua.pdf
could you please answer using excel formulas- A good stock-based mutua.pdfcould you please answer using excel formulas- A good stock-based mutua.pdf
could you please answer using excel formulas- A good stock-based mutua.pdfAlexanderM4ZColemann
 
Copy the above function code (the first four code lines) into the Func.pdf
Copy the above function code (the first four code lines) into the Func.pdfCopy the above function code (the first four code lines) into the Func.pdf
Copy the above function code (the first four code lines) into the Func.pdfAlexanderM4ZColemann
 
Convert z-1-9e(3-50-3i) to standard form- Show your work- (1).pdf
Convert z-1-9e(3-50-3i) to standard form- Show your work- (1).pdfConvert z-1-9e(3-50-3i) to standard form- Show your work- (1).pdf
Convert z-1-9e(3-50-3i) to standard form- Show your work- (1).pdfAlexanderM4ZColemann
 
Convergent evolution --- depends on natural selection to independently.pdf
Convergent evolution --- depends on natural selection to independently.pdfConvergent evolution --- depends on natural selection to independently.pdf
Convergent evolution --- depends on natural selection to independently.pdfAlexanderM4ZColemann
 
Coronado Company reports the following financial information before ad.pdf
Coronado Company reports the following financial information before ad.pdfCoronado Company reports the following financial information before ad.pdf
Coronado Company reports the following financial information before ad.pdfAlexanderM4ZColemann
 
Copy the code below a file called ex7-6- py- Fill in the blank in chan.pdf
Copy the code below a file called ex7-6- py- Fill in the blank in chan.pdfCopy the code below a file called ex7-6- py- Fill in the blank in chan.pdf
Copy the code below a file called ex7-6- py- Fill in the blank in chan.pdfAlexanderM4ZColemann
 
Coretta sold the following securities during 2021- What is Coretta's n (1).pdf
Coretta sold the following securities during 2021- What is Coretta's n (1).pdfCoretta sold the following securities during 2021- What is Coretta's n (1).pdf
Coretta sold the following securities during 2021- What is Coretta's n (1).pdfAlexanderM4ZColemann
 
contributed by two parents is blended together to produce an offspring.pdf
contributed by two parents is blended together to produce an offspring.pdfcontributed by two parents is blended together to produce an offspring.pdf
contributed by two parents is blended together to produce an offspring.pdfAlexanderM4ZColemann
 
Convert r-010 into an NFA using mechanical steps- Show your work at ea.pdf
Convert r-010 into an NFA using mechanical steps- Show your work at ea.pdfConvert r-010 into an NFA using mechanical steps- Show your work at ea.pdf
Convert r-010 into an NFA using mechanical steps- Show your work at ea.pdfAlexanderM4ZColemann
 

More from AlexanderM4ZColemann (20)

Create a complete class named Member- The Member class should include.pdf
Create a complete class named Member- The Member class should include.pdfCreate a complete class named Member- The Member class should include.pdf
Create a complete class named Member- The Member class should include.pdf
 
Create a class called teachers- for which assign the ID to be 400 and.pdf
Create a class called teachers- for which assign the ID to be 400 and.pdfCreate a class called teachers- for which assign the ID to be 400 and.pdf
Create a class called teachers- for which assign the ID to be 400 and.pdf
 
Create a Client-Server TCP application using Python (See slides from c.pdf
Create a Client-Server TCP application using Python (See slides from c.pdfCreate a Client-Server TCP application using Python (See slides from c.pdf
Create a Client-Server TCP application using Python (See slides from c.pdf
 
Crane provides shuttle service between 4 hotels near a medical center.pdf
Crane provides shuttle service between 4 hotels near a medical center.pdfCrane provides shuttle service between 4 hotels near a medical center.pdf
Crane provides shuttle service between 4 hotels near a medical center.pdf
 
Crane Inc- had the following transactions pertaining to investments in.pdf
Crane Inc- had the following transactions pertaining to investments in.pdfCrane Inc- had the following transactions pertaining to investments in.pdf
Crane Inc- had the following transactions pertaining to investments in.pdf
 
Craft ascript that- - displess the informationin Data to the CW as foa.pdf
Craft ascript that- - displess the informationin Data to the CW as foa.pdfCraft ascript that- - displess the informationin Data to the CW as foa.pdf
Craft ascript that- - displess the informationin Data to the CW as foa.pdf
 
Coyne Corporation recently hired Elaine Herrold as its new bookkeeper-.pdf
Coyne Corporation recently hired Elaine Herrold as its new bookkeeper-.pdfCoyne Corporation recently hired Elaine Herrold as its new bookkeeper-.pdf
Coyne Corporation recently hired Elaine Herrold as its new bookkeeper-.pdf
 
Courve- inscoteris- wedediat the red of thin chielec)res- fiure 12-11.pdf
Courve- inscoteris- wedediat the red of thin chielec)res- fiure 12-11.pdfCourve- inscoteris- wedediat the red of thin chielec)res- fiure 12-11.pdf
Courve- inscoteris- wedediat the red of thin chielec)res- fiure 12-11.pdf
 
Countries of the Gulf Cooperation Council (GCC) have grown dependent o.pdf
Countries of the Gulf Cooperation Council (GCC) have grown dependent o.pdfCountries of the Gulf Cooperation Council (GCC) have grown dependent o.pdf
Countries of the Gulf Cooperation Council (GCC) have grown dependent o.pdf
 
Countries that offer foreign firms a reduced set of environmental stan.pdf
Countries that offer foreign firms a reduced set of environmental stan.pdfCountries that offer foreign firms a reduced set of environmental stan.pdf
Countries that offer foreign firms a reduced set of environmental stan.pdf
 
could you provide the formula used to find the yearly avearge- seasona.pdf
could you provide the formula used to find the yearly avearge- seasona.pdfcould you provide the formula used to find the yearly avearge- seasona.pdf
could you provide the formula used to find the yearly avearge- seasona.pdf
 
could you please answer using excel formulas- A good stock-based mutua.pdf
could you please answer using excel formulas- A good stock-based mutua.pdfcould you please answer using excel formulas- A good stock-based mutua.pdf
could you please answer using excel formulas- A good stock-based mutua.pdf
 
Copy the above function code (the first four code lines) into the Func.pdf
Copy the above function code (the first four code lines) into the Func.pdfCopy the above function code (the first four code lines) into the Func.pdf
Copy the above function code (the first four code lines) into the Func.pdf
 
Convert z-1-9e(3-50-3i) to standard form- Show your work- (1).pdf
Convert z-1-9e(3-50-3i) to standard form- Show your work- (1).pdfConvert z-1-9e(3-50-3i) to standard form- Show your work- (1).pdf
Convert z-1-9e(3-50-3i) to standard form- Show your work- (1).pdf
 
Convergent evolution --- depends on natural selection to independently.pdf
Convergent evolution --- depends on natural selection to independently.pdfConvergent evolution --- depends on natural selection to independently.pdf
Convergent evolution --- depends on natural selection to independently.pdf
 
Coronado Company reports the following financial information before ad.pdf
Coronado Company reports the following financial information before ad.pdfCoronado Company reports the following financial information before ad.pdf
Coronado Company reports the following financial information before ad.pdf
 
Copy the code below a file called ex7-6- py- Fill in the blank in chan.pdf
Copy the code below a file called ex7-6- py- Fill in the blank in chan.pdfCopy the code below a file called ex7-6- py- Fill in the blank in chan.pdf
Copy the code below a file called ex7-6- py- Fill in the blank in chan.pdf
 
Coretta sold the following securities during 2021- What is Coretta's n (1).pdf
Coretta sold the following securities during 2021- What is Coretta's n (1).pdfCoretta sold the following securities during 2021- What is Coretta's n (1).pdf
Coretta sold the following securities during 2021- What is Coretta's n (1).pdf
 
contributed by two parents is blended together to produce an offspring.pdf
contributed by two parents is blended together to produce an offspring.pdfcontributed by two parents is blended together to produce an offspring.pdf
contributed by two parents is blended together to produce an offspring.pdf
 
Convert r-010 into an NFA using mechanical steps- Show your work at ea.pdf
Convert r-010 into an NFA using mechanical steps- Show your work at ea.pdfConvert r-010 into an NFA using mechanical steps- Show your work at ea.pdf
Convert r-010 into an NFA using mechanical steps- Show your work at ea.pdf
 

Recently uploaded

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesSHIVANANDaRV
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111GangaMaiya1
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptxJoelynRubio1
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonhttgc7rh9c
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use CasesTechSoup
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 

Recently uploaded (20)

Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lessonQUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
QUATER-1-PE-HEALTH-LC2- this is just a sample of unpacked lesson
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 

Create a console application Customer Management with Classes and Dele (1).pdf

  • 1. Create a console application Customer Management with Classes and Delegate/Event PLEASE DO THIS IN C# 1. Customer Class Private variable firstName, lastName, email, id (you could use a phone number as id) Constructor Customer() Customer(firstName, lastName, email, id) Properties FirstName, LastName, Email, ID Method public string GetDisplayText() 2. CustomerList Class Add the following members to the CustomerList class Property (Read only) Count Indexer [index] Provides access to the Customer at the specified position. public Customer this[int index]{...} Method Add(customer) Remove(customer)
  • 2. Delegate & Event public delegate void ChangeHandler(CustomerList customers); public event ChangeHandler ? Changed; The event Changed uses the ChangeHandler delegate and should be raised any time the customer list changes 3. Main Program Allow a user to choose from the following options, then guide the user through the add or delete functions. Make your application self-explanatory and user-friendly. Option 1: Add a new customer Option 2: Delete a customer Option 3: Exit the program Subscribe to the Changed event. Whenever there is a change in the CustomerList (add or delete), display on the console the entire list of the customers with name, email and ID information Private variable firstName, lastName, email, id (you could use a phone number as id) Constructor Customer() Customer(firstName, lastName, email, id) Create a new Customer Objects Properties FirstName, LastName, Email, ID Customer information Method public string GetDisplayText() Get the customer information (Name, Email, ID), and return a string.