Question: Need some help with C# using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Phone_Book { class PhoneBook { List Email_id

Need some help with C#

using System; using System.Collections.Generic; using System.Collections.Specialized; using System.Linq; using System.Text; using System.Threading.Tasks;

namespace Phone_Book { class PhoneBook { List Email_id = new List(); SortedDictionary Dict = new SortedDictionary (); StringCollection Address = new StringCollection(); public Directory (SortedDictionary dict, StringCollection address, List email) { this.Dict = dict; this.Email_id = email; this.FName = F_Name; this.LName = L_Name; this.address = Address; } } class Another { static void main(string[] args) { int number; start_again; String Key, address, Email, F_Name, L_Name; for (int i = 0; i < 20; i++) { Console.WrinteLine("Enter Entry"); Key = Console.Readline(); Console.WriteLine("Enter Number to be Added"); number = Convert.ToInt32(Console.Readline()); Console.WriteLine("Enter Address to be Added"); address = Console.ReadLine(); Console.WriteLine("Enter Email Address"); Email = Console.Readline(); Console.WriteLine("Enter Last Name"); FName = Console.ReadLine(); Console.WriteLine("Enter First Name"); LName = Console.ReadLine(); dict.Add(Key, Number); Console.WriteLine("Do You Want to Continue?"); char C = Convert.ToChar(Console.ReadLine()); if (C == 'y') { console.WriteLine("Yes"); goto start_again; } else { Console.WriteLine("No More Entries to be added."); Console.WriteLine("First Name, Last Name, Address, Email"); foreach (object at in dir) { Console.WriteLine(at); } } Console.ReadLine(); } } } }

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 Databases Questions!