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."); } } } }