Loading...
kkaraivanov avatar kkaraivanov 486 Точки

Кода е много голям и неуспявам да схвана логиката. Ето ти моето решение да сравниш, гешката ще се покаже

ЛИНК.......

0
zisedup avatar zisedup 1 Точки

A detailed answer is inquired for the identification of goals for people. Mutual way of the term and essayedge.com reviews is chalked out for humans. The target of health and fitness is improved for all goals for people. The assignment is filled with the tips and moves for humans. challenge is argued with the help of approachable means for all good signs for people.

0
emmabrown avatar emmabrown 0 Точки

There is nothing more fun than an old-fashioned road trip. Now, I've been a "road tripper" for some time and though all u can eat breakfast buffet near me  I love air travel, I love road trips because you can really experience the country as you drive to your destination and soak up the local flavors along the way.

0
JohnSinger avatar JohnSinger 0 Точки

This concise article will examine the idea of a pressure crack and how to treat this finding. One such route is to best hand doctor near me utilize well-made support that can assist you with advancing the mending procedure. We will talk about additional in this article.

0
valio90 avatar valio90 6 Точки

using System;

namespace _4._9._10Ski_Trip
{
    class Program
    {
        static void Main(string[] args)
        {
            int ddni = int.Parse(Console.ReadLine());
            string pomeshtenie = Console.ReadLine();
            string ochenka = Console.ReadLine();
            double prestoi = 0;
            double ostypka = 0;
            double dni =ddni- 1;
            if (pomeshtenie == "room for one person")
            {
                 ostypka = dni * 18.00;

                
            }
            else if (pomeshtenie == "apartment")
            {
                 prestoi = dni * 25.00;

                if (dni>0 && dni <= 10)
                {
                    ostypka = prestoi - (prestoi * 0.30);
                }
                else if (dni > 10 && dni <= 15)
                {
                     ostypka = prestoi - (prestoi * 0.35);
                }
                else if (dni > 15)
                {
                     ostypka = prestoi - (prestoi * 0.50);
                }

                


            }
            else if (pomeshtenie == "president apartment")
            {
                 prestoi = dni * 35.00;

                if (dni > 0 && dni <= 10)
                {
                    ostypka = prestoi - (prestoi * 0.10);
                }
                else if (dni > 10 && dni <= 15)
                {
                     ostypka = prestoi - (prestoi * 0.15);
                }
                else if (dni > 15)
                {
                     ostypka = prestoi - (prestoi * 0.20);
                }


                //346

            }


            if (ochenka == "positive")
            {
                double bakshish = ostypka + (ostypka * 0.25);
                Console.WriteLine($"{bakshish:F2}");
            }
            else if (ochenka == "negative")
            {
                double bakshish = ostypka - (ostypka * 0.10);
                Console.WriteLine($"{bakshish:F2}");
            }
        }
    }
}

 

0
muneerahmed avatar muneerahmed 1 Точки

Extremely intriguing online journal. A lot of web journals I see nowadays don't generally give anything that I'm keen on, however I'm most definitely inspired by this one. Recently felt that I would post and let you know. https://royalcbd.com/product/cbd-oil-2500mg/

0
hyparh avatar hyparh 3 Точки

Едно решение и от мен. Стана малко дълъг код, но цялата логика си я направих изцяло сам без да гледам от никъде, като след доста опити успях да чукна 100/100 :) (дебъгването помага много при хващането на грешките)

https://pastebin.com/3YNMrMcw

0
koknq avatar koknq 24 Точки

using System;

namespace ConsoleApp6
{
    class Program
    {
        static void Main(string[] args)
        {
            double days = double.Parse(Console.ReadLine());
            string room = Console.ReadLine();
            string e = Console.ReadLine();
            double price = 0.0;
            double totalprice = 0.0;
            double totalprice2 = 0.0;
            if (room == "room for one person")
            {
                price = 18.00;
                if (e == "positive")
                {
                    totalprice = (days-1) * price + (days-1) * price * 0.25;
                    Console.WriteLine("{0:F2}", totalprice);
                }

                else if (e == "negative")


                {
                    totalprice = (days-1) * price - (days-1) * price * 0.10;
                    Console.WriteLine("{0:F2}", totalprice);
                }

            }
            else if (room == "apartment")
            {
                price = 25.00;
                if (e == "positive")
                {
                    if (days < 10)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.30;
                        Console.WriteLine("{0:F2}", (totalprice + totalprice * 0.25));
                    }
                    else if (days >= 10 && days <= 15)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.35;
                        Console.WriteLine("{0:F2}", (totalprice + totalprice * 0.25));
                    }
                    else if (days > 15)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.50;
                        Console.WriteLine("{0:F2}", (totalprice + totalprice * 0.25));
                    }
                }
                else if (e == "negative")
                {

                    if (days < 10)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.30;
                        Console.WriteLine("{0:F2}", (totalprice - totalprice * 0.10));
                    }
                    else if (days >= 10 && days <= 15)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.35;
                        Console.WriteLine("{0:F2}", (totalprice - totalprice * 0.10));
                    }
                    else if (days > 15)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.50;
                        Console.WriteLine("{0:F2}", (totalprice - totalprice * 0.10));
                    }
                }

            }

            else if (room == "president apartment")
            {
                price = 35.00;
                if (e == "positive")
                {
                    if (days < 10)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.10;
                        Console.WriteLine("{0:F2}", (totalprice + totalprice * 0.25));
                    }
                    else if (days >= 10 && days <= 15)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.15;
                        Console.WriteLine("{0:F2}", (totalprice + totalprice * 0.25));
                    }
                    else if (days > 15)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.20;
                        Console.WriteLine("{0:F2}", (totalprice + totalprice * 0.25));
                    }
                }
                else if (e == "negative")
                {
                    if (days < 10)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.10;
                        Console.WriteLine("{0:F2}", (totalprice - totalprice * 0.10));
                    }
                    else if (days >= 10 && days <= 15)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.15;
                        Console.WriteLine("{0:F2}", (totalprice - totalprice * 0.10));
                    }
                    else if (days > 15)
                    {
                        totalprice2 = (days - 1) * price; totalprice = totalprice2 - totalprice2 * 0.20;
                        Console.WriteLine("{0:F2}", (totalprice - totalprice * 0.10));
                    }
                }
            }
        }
    }
}

Ето едно решение и от мен, самоделно :)

0
Можем ли да използваме бисквитки?
Ние използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Можете да се съгласите с всички или част от тях.
Назад
Функционални
Използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Използваме „сесийни“ бисквитки, за да Ви идентифицираме временно. Те се пазят само по време на активната употреба на услугите ни. След излизане от приложението, затваряне на браузъра или мобилното устройство, данните се трият. Използваме бисквитки, за да предоставим опцията „Запомни Ме“, която Ви позволява да използвате нашите услуги без да предоставяте потребителско име и парола. Допълнително е възможно да използваме бисквитки за да съхраняваме различни малки настройки, като избор на езика, позиции на менюта и персонализирано съдържание. Използваме бисквитки и за измерване на маркетинговите ни усилия.
Рекламни
Използваме бисквитки, за да измерваме маркетинг ефективността ни, броене на посещения, както и за проследяването дали дадено електронно писмо е било отворено.