public Date(int d,int m,int y)
public int compareTo(Date d)
public override string ToString()
return this.day+"/"+this.month+"/"+this.year;
public Passport(string na,int nu,Date ED)
this.ED=new Date(ED.getDay(),ED.getMonth(),ED.getYear());
public Passport(Passport p)
this.ED=new Date(p.ED.getDay(),p.ED.getMonth(),p.ED.getYear());
public bool isValid(Date d)
if (this.ED.compareTo(d)>0)
public override string ToString()
return " name: "+this.name+"\n number: "+this.number+"\n ED: "+this.ED;
public traveler(Passport p,bool a)
public bool check(Date a)
public override string ToString()
return this.p+"\n active: "+this.pay;
public static void Main()
Date c=new Date(1,2,3012);
Passport t=new Passport("chatbot",21424323,c);
traveler a=new traveler(t,true);
Console.WriteLine("bot: hello");
inputValue=Console.ReadLine().ToLower();
Random rnd = new Random();
outputValue="I've already said hello";
outputValue="i'm bob , the chat bot";
outputValue="shuting down system";
Console.WriteLine("This is the Magic 8 Ball game.");
Console.WriteLine("Enter your question below.");
string a2=Console.ReadLine();
randomNumber = rnd.Next(0,5);
string[] o= {"YES" , "NO" , "MAYBE" , "TRY AGAIN LATER" , "NEVER"};
string answers = o [randomNumber];
Console.WriteLine("Your Answer is:" + answers);
Console.WriteLine("This is The Number Guessing Game!");
Console.WriteLine("Guess a number from 1 to 10.");
int.TryParse(Console.ReadLine(), out choice);
Console.WriteLine("Good job, amigo!");
Console.WriteLine("This is Rock Paper Scissors.");
randomNumber = rnd.Next(0,2);
String[] options = {"Rock", "Paper", "Scissors"};
String rockpaperscissors = options[randomNumber];
Console.WriteLine("Rock, paper, scissors, shoot. The champion is: " + rockpaperscissors);
Console.WriteLine(outputValue);
Console.WriteLine("no found response");