I'm not too sure on what type of loops to use, the class power point isn't really getting the point across and I have no idea what to do
{
string name;
double sales;
//start loop here to ask user for employee info
name =GetName("name");
//Start a loop here to ask for the sales of each day
sales1 = GetSales("day 1 sales");
sales2 = GetSales("day 2 sales");
sales3 = GetSales("day 3 sales");
sales4 = GetSales("day 4 sales");
sales5 = GetSales("day 5 sales");
Console.WriteLine("\n");
//End loop here asking for sales of each day
Employee emp1 = new Employee( );
Display(emp1);
//End loop here asking for employee info
In a previous program we have used
{
name = GetInput("name");
grade1 = int.Parse(GetInput("first grade"));
grade2 = int.Parse(GetInput("second grade"));
grade3 = int.Parse(GetInput("third grade"));
}
public static string GetInput(string temp)
{
Console.Write("Please enter your {0}: ", temp);
return Console.ReadLine();
}
to get the user to input multiple numbers and a name but my prof wants this in a loop but I have no idea how to convert this into a loop