-
Notifications
You must be signed in to change notification settings - Fork 0
/
UserInterface.cs
49 lines (42 loc) · 1.25 KB
/
UserInterface.cs
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace sweepStakes
{
class UserInterface
{
//member variables
//costructor
public UserInterface()
{
IntroToUser();
}
//member methods
void IntroToUser()
{
string register;
Console.WriteLine("Welcome to the sweepstakes! Are you a participant or manager?");
Console.WriteLine("Please choose ","user"," or ","manager" );
register = Console.ReadLine().ToLower();
Console.ReadKey();
switch (register)
{
case "participant":
Contestant contestant = new Contestant();
break;
case "manager":
ChooseWhichMethod();
break;
}
}
public string ChooseWhichMethod()
{
string choice;
Console.WriteLine("would you like use the sweepstakes in the stack or queue?");
choice = Console.ReadLine().ToLower();
return choice;
}
}
}