using System;
namespace _03_NewHouse
{
internal class Program
{
static void Main(string[] args)
{
// 1.Read all input
// 2.Calculate total Costs
//Roses - 5 leva : if more than 80 -10% discount
//Dahlias - 3.8 : if more than 90 -15%
//tulips -2.8 if more than 80 - 15% discount
// narcissue - 3 of less than 120- add 15% to thr final price
// gladious - 2.5; if less than 80 - add 20% to thr finsl price
//"Hey, you have a great garden with {броя цвета} {вид цветя} and {останалата сума} leva left."
// Ако бюджета им е НЕ достатъчен -"Not enough money, you need {нужната сума} leva more.
string flowerType = Console.ReadLine();
int flowerCount = int.Parse(Console.ReadLine());
int budget = int .Parse(Console.ReadLine());
double totalCosts = 0;
if (flowerType == "Roses")
{
totalCosts = 5 * flowerCount;
if (flowerCount > 80)
{
totalCosts = 0.9 * totalCosts;
}
}
else if (flowerType == "Dahlias")
{
totalCosts = 3.8 * flowerCount;
if (flowerCount > 90)
{
totalCosts = 0.85 * totalCosts;
}
}
else if (flowerType == "Tulips")
{
totalCosts = 2.8 * flowerCount;
if (flowerCount > 80)
{
totalCosts = 0.85 * totalCosts;
}
}
else if (flowerType == "Narcissus")
{
totalCosts = 3 * flowerCount;
if (flowerCount < 120)
{
totalCosts = (0.15 * totalCosts) + totalCosts;
}
}
else if (flowerType == "Glasious")
{
totalCosts = 2.5 * flowerCount;
if (flowerCount < 80)
{
totalCosts = (0.2 * totalCosts) + totalCosts;
}
}
if (budget >= totalCosts)
{
double remainingMoney = budget - totalCosts;
Console.WriteLine($"Hey, you have a great garden with {flowerCount} {flowerType} and {remainingMoney:f2} leva left.");
}
else
{
double requiredMoney = totalCosts - budget;
Console.WriteLine($"Not enough money, you need {requiredMoney:f2} leva more.");
}
}
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}