This is what I have but I am getting error messages:
String YearBorn:
int YearBornInt;
Console.Out.WriteLine("Please enter your year of birth (eg:1985).");
YearBorn = Console.In.ReadLine();
YearBornInt = Convert.ToInt32 (YearBorn);
Int32...
Console.Out.WriteLine("Please enter the year you were born");
Int32 age = DateTime.Now.Year - Convert.ToInt32(Console.ReadLine());if(age>18)
Console.Out.WriteLine("You are approved to make a purchase.");else
Console.Out.WriteLine("You are not approved to make a purchase.");
I know I...
I am taking a C# class and I am totally lost on this week's assignment I haven't been able to get much hoping someone here can assist. Time is of the essence. Here is this weeks assignment:
One of your smaller customers needs your help writing a program. Your customer has an e-commerce Web...