ok i couldn't edit last post so ima make this new one heres the code for the talking thing i hope someone learns somthing from it because its super simple, heres code:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace TalkBot
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello im Smart Pc, Whats your name?");
string dname = Console.ReadLine();
Console.WriteLine("Nice to meet you " + dname);
bool Questionanswered = false;
bool IsBoy = false;
while (!Questionanswered)
{
Console.WriteLine("Are you a boy or a girl?");
string tmp = Console.ReadLine();
if (tmp == "boy" || tmp == "girl")
{
Questionanswered = true;
IsBoy = (tmp == "boy");
}
}
if (IsBoy)
Console.WriteLine("Hello Sir");
else
{
Console.WriteLine("Well, hello Maam");
}
Console.WriteLine("How are you " + dname + "? good or bad?");
string aname = Console.ReadLine();
bool QuestionAnswered = false;
bool IsGood = false;
while (!QuestionAnswered)
{
Console.WriteLine("hmm i didnt get that say again");
string tmp = Console.ReadLine();
if (tmp == "good" || tmp == "bad")
{
QuestionAnswered = true;
IsGood = (tmp == "good");
}
}
if (IsGood)
Console.WriteLine("Well nice to hear you are doing good");
else
{
Console.WriteLine("Why whats wrong?");
}
{
string fname = Console.ReadLine();
}
if (IsGood)
Console.WriteLine("hmmmmmmmmmm ");
else
{
Console.WriteLine("that sux");
{
Console.WriteLine("well i have to go to sleep bye");
string response1 = Console.ReadLine();
{
}
}
}
}
}
}