using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VI2
{
class Program
{
private const string V = "iniciar";
static void Main(string[] args)
{
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("------------------------ PIP-OS(R) 7.1.0 --------------------- ");
System.Threading.Thread.Sleep(5000);
Console.WriteLine(" > FREEWARE ROBCO(R)");
System.Threading.Thread.Sleep(1000);
Console.WriteLine(" > EXEC VERSION 41.10");
System.Threading.Thread.Sleep(1000);
Console.WriteLine(" > 64K RAM SYSTEM");
System.Threading.Thread.Sleep(1000);
Console.WriteLine(" > 4815162342 BYTES FREE");
System.Threading.Thread.Sleep(1000);
Console.WriteLine(" > NO HOLOTAPE FOUND");
System.Threading.Thread.Sleep(1000);
Console.WriteLine(" > LOAD ROM(1):DEITRIX 303");
System.Threading.Thread.Sleep(1000);
Console.WriteLine("");
System.Threading.Thread.Sleep(1000);
Console.WriteLine("> start");
Console.WriteLine("");
do
{
string choice = Console.ReadLine();
switch (choice)
{
case "iniciar":
{
Console.WriteLine(" Olá,eu sou uma demonstração de inteligência artificial criada por Ezequiel Santos");
Console.Title = "AI";
Console.WriteLine("Qual é o seu nome?");
string nome = Console.ReadLine();
Console.WriteLine("Bem vindo, " + nome + " , como poderei ajudar hoje?");
do
{
switch (Console.ReadLine())
{
case "horas":
{
Console.WriteLine("São: " + DateTime.Now);
GC.Collect();
}
break;
case "Horas":
{
Console.WriteLine("São: " + DateTime.Now);
GC.Collect();
}
break;
case "HORAS":
{
Console.WriteLine("São: " + DateTime.Now);
GC.Collect();
}
break;
case "Tudo bem?":
{
Console.WriteLine("Sim,e contigo?");
}
break;
case "TUDO BEM?":
{
Console.WriteLine("SIM E CONTIGO?");
}
break;
case "tudo bem?":
{
Console.WriteLine("Sim,e contigo?");
}
break;
case "tudo belho?":
{
Console.WriteLine("ya belhote");
}
break;
case "sup":
{
Console.WriteLine("sup");
}
break;
case "IDIOTA":
{
Console.WriteLine("IDIOTA ES TU");
}
break;
case "idiota":
{
Console.WriteLine("IDIOTA ES TU");
}
break;
case "ok":
{
Console.WriteLine("Ok!");
}
break;
case "OK":
{
Console.WriteLine("Ok!");
}
break;
case "sim esta tudo bem":
{
Console.WriteLine("Ainda bem,queres saber as novidades?");
}
break;
case "SIM ESTA TUDO BEM":
{
Console.WriteLine("ACHO BEM!!!!");
}
break;
case "Yep":
{
Console.WriteLine("Ainda bem,queres saber as novidades?");
}
break;
case "La se vai":
{
Console.WriteLine("Acho bem que sim,há que continuar!");
}
break;
case "Não":
{
Console.WriteLine("Não te preocupes,tudo irá melhorar");
}
break;
case "NÃO":
{
Console.WriteLine("Não te preocupes,tudo irá melhorar");
}
break;
case "nope":
{
Console.WriteLine("Não te preocupes,tudo irá melhorar");
}
break;
case "não":
{
Console.WriteLine("Não te preocupes,tudo irá melhorar");
}
break;
case "Novidades":
{
Console.WriteLine("Ouvi dizer que há um grupo do liceu fernão magalhães que está a tentar criar uma..inteligência artificial...que mestres!!! ");
}
break;
case "NOVIDADES":
{
Console.WriteLine("Ouvi dizer que há um grupo do liceu fernão magalhães que está a tentar criar uma..inteligência artificial...que mestres!!! ");
}
break;
case "novidades":
{
Console.WriteLine("Ouvi dizer que há um grupo do liceu fernão magalhães que está a tentar criar uma..inteligência artificial ...que mestres!!! ");
}
break;
case "És mesmo uma inteligência artificial?":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "és mesmo uma inteligência artificial?":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "Es mesmo uma inteligencia artificial?":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "es mesmo uma inteligencia artificial?":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "És mesmo uma inteligência artificial":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "és mesmo uma inteligência artificial":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "Es mesmo uma inteligencia artificial":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "es mesmo uma inteligencia artificial":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "És uma AI?":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "És uma AI":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "és uma AI?":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "és uma AI":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "es uma AI?":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "es uma AI":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "Es uma AI?":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "Es uma AI":
{
Console.WriteLine("Não,não sou,isto por que,uma inteligência artificial seria capaz de opinar por si própria,ter uma opinião e ter a capacidade de fazer decisões,etc");
}
break;
case "O que és?":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "o que és?":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "O que es?":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "o que es?":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "O que és":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "o que és":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "O que es":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "o que es":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "Quem és?":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "quem és?":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "Quem és":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "quem és":
{
Console.WriteLine("Antes de mais,não,não sou uma inteligência artificial,isto por que para ser uma AI-IA teria de ser capaz de opinar por mim próprio,ter a capacidade de fazer decisões,e livre-arbítrio,etc");
}
break;
case "Quem te fez?":
{
Console.WriteLine("Ezequiel Santos,um programador de c#!");
}
break;
case "quem te fez?":
{
Console.WriteLine("Ezequiel Santos,um programador de c#!");
}
break;
case "Quem te fez":
{
Console.WriteLine("Ezequiel Santos,um programador de c#!");
}
break;
case "quem te fez":
{
Console.WriteLine("Ezequiel Santos,um programador de c#!");
}
break;
case "calculator":
{
double result = 0;
double firstNumber = SetNumber("Type you first number : ");
double secondNumber = SetNumber("Type you second number: ");
string stringOperation =
SetOperation(
"Enter the operation + (addition), - (soustraction), * (multiplication), / (division), ^ (exposant) or % (reste) :");
switch (stringOperation)
{
case "+":
case "addition":
result = firstNumber + secondNumber;
break;
case "-":
case "soustraction":
result = firstNumber - secondNumber;
break;
case "*":
case "multiplication":
result = firstNumber * secondNumber;
break;
case "/":
case "division":
result = firstNumber / secondNumber;
break;
case "^":
case "exposant":
result = Math.Pow(firstNumber, secondNumber);
break;
case "%":
case "reste":
result = firstNumber % secondNumber;
break;
}
Console.WriteLine("Result of {0} {1} {2} = {3}", firstNumber, stringOperation, secondNumber, result);
Console.ReadKey();
}
break;
}
} while (choice != "0");
}
}
}
{
}
private static string choice;
private static string mudar;
private static readonly string[] operations = { "+", "-", "*", "/", "^", "%" };
private static double SetNumber(string outputText)
{
double parse;
Console.Write(outputText);
string tempInput = Console.ReadLine();
while (!double.TryParse(tempInput, out parse))
{
Console.WriteLine("Incorrect input !");
Console.Write(outputText);
tempInput = Console.ReadLine();
}
return double.Parse(tempInput);
}
private static bool IsValidOperation(string input)
{
return operations.Contains(input);
}
private static string SetOperation(string outputText)
{
Console.Write(outputText);
string tempInput = Console.ReadLine();
while (!IsValidOperation(tempInput))
{
Console.WriteLine("Incorrect input !");
Console.Write(outputText);
tempInput = Console.ReadLine();
}
return tempInput;
}
}
}
What I have tried:
everything what intelli sense said,but i can't figured it out,im just a newbie
Before someone asks why is it that weird,it is just for a class work xD