divolo
❔ new to programming and can't figure out
i want to create an appointment scheduler that let's the user create view update and delete but can't figure out how
using System;
using System.Data;
namespace appointment
{
class Program
{
static void Main(string[] args)
{
bool showMenu = true;
while (showMenu)
{
showMenu = Mainmenu();
}
}
private static bool Mainmenu()
{
Console.Clear();
Console.WriteLine("menu");
Console.WriteLine("1 )schedule appointment");
Console.WriteLine("2 )view appointment");
Console.WriteLine("3 )update appointment");
Console.WriteLine("4 )delete appointment");
Console.WriteLine("5 )exit");
Console.Write("\r\nselect an option:");
switch (Console.ReadLine())
{
case "1":
return true;
case "2":
return true;
case "3":
return true;
case "4":
return true;
case "5":
return false;
default:
return true;
}
}
private static void
}
}
36 replies