Къде ми е проблемът с тази задача 66/100 ?Fishing Boat
using System;
namespace FishingBoat
{
class Program
{
static void Main(string[] args)
{
const int sprintPrice = 3000;
const int summerAndAutumnPrice = 4200;
const int winterPrice = 2600;
int budjet = int.Parse(Console.ReadLine());
string season = Console.ReadLine();
int numberOfFishing = int.Parse(Console.ReadLine());
double totalPrice = 0;
switch (season)
{
case "Srping":
totalPrice = sprintPrice;
break;
case "Summer":
totalPrice = summerAndAutumnPrice;
break;
case "Autumn":
totalPrice = summerAndAutumnPrice;
break;
case "Winter":
totalPrice = winterPrice;
break;
}
if (numberOfFishing <= 6)
{
totalPrice -= totalPrice * 0.10;
}
else if (numberOfFishing >= 7 && numberOfFishing <= 11)
{
totalPrice -= totalPrice * 0.15;
}
else
{
totalPrice -= totalPrice * 0.25;
}
if (numberOfFishing % 2 == 0 && season != "Autumn")
{
totalPrice -= totalPrice * 0.05;
}
if (budjet >= totalPrice)
{
double moneyLeft = budjet - totalPrice;
Console.WriteLine($"Yes! You have {moneyLeft:f2} leva left.");
}
else if (budjet < totalPrice)
{
double moneyNeed = totalPrice - budjet;
Console.WriteLine($"Not enough money! You need {moneyNeed:f2} leva.");
}
}
}
}
es off them. and on they went, till the activity was pretty done, and the footwear stood equipped to be used upon the desk. this become long before dawn; and then they bustled away as short as lightning.
business voip service
Благодаря ти колега,помогна кода,а иначе доста често ми се закучват ей така задчите на наглед вярно решение ..