-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
50 lines (45 loc) · 1.61 KB
/
Copy pathProgram.cs
File metadata and controls
50 lines (45 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
namespace ContactManagementSystem
{
class Program
{
static void Main(string[] args)
{
//Initialize new FileContactStorage and ContactBook.
// Implement user interaction loop here:
// Display menu options, take user input, and call corresponding ContactBook methods
while (true)
{
Console.WriteLine("\nContact Book Application");
Console.WriteLine("1. Add Contact");
Console.WriteLine("2. View Contacts");
Console.WriteLine("3. Update Contact");
Console.WriteLine("4. Delete Contact");
Console.WriteLine("5. Exit");
Console.Write("Select an option: ");
var option = Console.ReadLine();
switch (option)
{
case "1":
// Add contact flow
break;
case "2":
// View contacts flow
break;
case "3":
// Update contact flow
break;
case "4":
// Delete contact flow
break;
case "5":
// Exit application
Console.WriteLine("Exiting application...");
return;
default:
Console.WriteLine("Invalid option, please try again.");
break;
}
}
}
}
}