I am trying to multiply a decimal but I am getting an error.
The child ticket is 50% of the cost of the Adult ticket. And the Seniors ticket is 70% of the Adult ticket. Error is telling me that the * operator cannot be applied to doubles or multiples..
I tried to use brackets to isolate the caculation.. but I am still getting the operand error.
Console.Write("Enter the cost of one Adult ticket: $");
decimal CostAdult = Convert.ToDecimal(Console.ReadLine());
decimal revenue1 = CostAdult * Adult;
Console.WriteLine("You have made " + revenue1.ToString("C") + " for Adult ticket sales!");
Console.ReadLine();
decimal revenue2 = CostAdult * Child * 0.5;
Console.WriteLine("You have made " + revenue1.ToString("C") + " for Senior ticket sales!");
Console.ReadLine();
decimal revenue3 = CostAdult * Senior * 0.7;
Console.WriteLine("You have made " + revenue1.ToString("C") + " for Senior ticket sales!");
Console.ReadLine();