Къде е проблемът ?Bike Race
Моля за малко помощ,незнам къде бъркам в кода дава ми 80/ 100..
using System;
namespace BikeRace
{
class Program
{
static void Main(string[] args)
{
double juniors = double.Parse(Console.ReadLine());
double seniors = double.Parse(Console.ReadLine());
string area = Console.ReadLine();
double totalSum = 0;
const double trailJuniors = 5.50;
const double trailSeniors = 7;
double crossJuniors = 8;
double crossSeniors = 9.50;
const double downhillJuniors = 12.25;
const double downhillSeniors = 13.75;
const double roadJuniors = 20;
const double roadSeniors = 21.50;
if (area == "trail")
{
totalSum = juniors * trailJuniors + seniors * trailSeniors;
}
else if (area == "cross-country")
{
double bonusGroup = seniors + juniors;
if (bonusGroup >= 50)
{
totalSum = juniors * (crossJuniors - (crossJuniors * 0.25)) + seniors * (crossSeniors - (crossSeniors * 0.25));
}
totalSum = juniors * crossJuniors + seniors * crossSeniors;
}
else if (area == "downhill")
{
totalSum = juniors * downhillJuniors + seniors * downhillSeniors;
}
else if (area == "road")
{
totalSum = juniors * roadJuniors + seniors * roadSeniors;
}
double finalSum = totalSum - (totalSum * 0.05);
Console.WriteLine($"{finalSum:f2}");
}
}
}