Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using static System.Console;
- namespace The_begining
- {
- class Program
- {
- static void Main(string[] args)
- {
- int countDograma = int.Parse(Console.ReadLine());
- string kindDograma = Console.ReadLine();
- string delivery = Console.ReadLine();
- double price = 0;
- switch (kindDograma)
- {
- case "90X130":
- price = 110;
- if (countDograma >30)
- {
- price *= countDograma;
- price -= (0.05 * price);
- }
- else if(countDograma > 60)
- {
- price *= countDograma;
- price -= (0.08 * price);
- }
- break;
- case "100X150":
- price = 140;
- if (countDograma > 40)
- {
- price *= countDograma;
- price -= (0.06 * price);
- }
- else if (countDograma > 80)
- {
- price *= countDograma;
- price -= (0.10 * price);
- }
- break;
- case "130X180":
- price = 190;
- if (countDograma > 20)
- {
- price *= countDograma;
- price -= (0.07 * price);
- }
- else if (countDograma > 50)
- {
- price *= countDograma;
- price -= (0.12 * price);
- }
- break;
- case "200X300":
- price = 250;
- if (countDograma > 25)
- {
- price *= countDograma;
- price -= (0.09 * price);
- }
- else if (countDograma > 50)
- {
- price *= countDograma;
- price -= (0.14 * price);
- }
- break;
- }
- if (countDograma > 99)
- {
- price = price + (price *= 0.04);
- }
- if (countDograma < 10)
- {
- Console.WriteLine("Invalid order");
- }
- if (delivery == "With delivery")
- {
- }
- if (delivery == "Without delivery")
- {
- }
- Console.WriteLine($"{price:f2} BGN");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement