divolo
divolo
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
im sorry but can you please tell me the steps i should be taking right now
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
like this?
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
public Appointment CreateAppointment()
{
Appointment appointment = new Appointment();
}
public Appointment CreateAppointment()
{
Appointment appointment = new Appointment();
}
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
namespace appointment_scheduler
{
internal class Appointment
{
public string? title;
public string? date;
public string? time;
public string? location;

public string? Title { get; set; }
public string? Date { get; set; }
public string? Time { get; set; }
public string? Location { get; set; }


}


class program
{

static void Main(string[] args)
{
Appointment appointment = new Appointment();
bool showMenu = true;
while (showMenu)
{
showMenu = Mainmenu();

public Appointment? CreateAppointment();

}

}

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;
}
}
List<Appointment> numbers = new List<Appointment>();


}

the public Appointment CreateAppointment() keeps saying it must be declared
namespace appointment_scheduler
{
internal class Appointment
{
public string? title;
public string? date;
public string? time;
public string? location;

public string? Title { get; set; }
public string? Date { get; set; }
public string? Time { get; set; }
public string? Location { get; set; }


}


class program
{

static void Main(string[] args)
{
Appointment appointment = new Appointment();
bool showMenu = true;
while (showMenu)
{
showMenu = Mainmenu();

public Appointment? CreateAppointment();

}

}

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;
}
}
List<Appointment> numbers = new List<Appointment>();


}

the public Appointment CreateAppointment() keeps saying it must be declared
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
sorry if my english isn't clear english isn't my first language
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
so i've defined appointment how do i store what the user inputs in the appointment?
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
so if i remove it it won't change anything right?
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
public string? Title { get; set; } public string? Date { get; set; } public string? Time { get; set; } public string? Location { get; set; } or should i delete the ?
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
{ internal class Appointment { public string? title; public string? date; public string? time; public string? location; public string Title { get; set; } public string Date { get; set; } public string Time { get; set; } public string? Location { get; set; }
} right?
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
like this public string? Title { get => title; set => title = value; } public string? Date { get => date; set => date = value; } public string? Time { get => time; set => time = value; } public string? Location { get => location; set => location = value; }
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
like this? class appointment { public string title; public string date; public string time; public string loation; }
36 replies
CC#
Created by divolo on 8/7/2023 in #help
❔ new to programming and can't figure out
i don't know how to store data the user inputs nor how to let the user delete any changes they want
36 replies