/*
Veidotajs: Sorecs Andrejs
Grupa: 110
Praktiskais darbs: 6-2
Izmantotais compilars: Visual Studio
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _6_pr_istais
{
    internal class Program
    {
        static void Main()
        {
            //Uzd1();
            //Uzd2();
            //Uzd3();
            //Uzd4();
            //Uzd5();
            Uzd6();
            Console.ReadKey();
        }
        public static void Uzd1()
        {
            Console.WriteLine("Ievadiet veselo skaitli!");
            int sk=Convert.ToInt32(Console.ReadLine());
            if (sk > 0)
            {
                Console.WriteLine("Ievaditais skaitlis ir pozitivs");
            }
            else if (sk == 0)
            {
                Console.WriteLine("Ievaditais skaitlis ir vienads ar 0");
            }
            else
            {
                Console.WriteLine("Ievaditais skaitlis ir negativs");
            }
        }
        public static void Uzd2()
        {
            Console.WriteLine("Ievadiet nedelas dienu skaitlu veida");
            int nsk=Convert.ToInt32(Console.ReadLine());
            switch ( nsk )
            {
                case 1: Console.WriteLine("Pirmdiena"); break;
                case 2: Console.WriteLine("Otradiena"); break;
                case 3: Console.WriteLine("Tresdiena"); break;
                case 4: Console.WriteLine("Ceturdiena"); break;
                case 5: Console.WriteLine("Piektdiena"); break;
                case 6: Console.WriteLine("Sestdiena"); break;
                case 7: Console.WriteLine("Svetdiena"); break;
            }
        }
        public static void Uzd3()
        {
            Console.WriteLine("Ievadiet studentu iegutu punktu skaitu no 0-100");
            int atz=Convert.ToInt32(Console.ReadLine());
            if (atz > 89 && atz < 101)
            {
                Console.WriteLine("Atzīme A");
            }
            else if (atz > 79 && atz < 89)
            {
                Console.WriteLine("Atzīme B");
            }
            else if (atz >69 && atz <79)
            {
                Console.WriteLine("Atzīme C");
            }    
            else if (atz >59 && atz <69)
            {
                Console.WriteLine("Atzīme D");
            }
            else if (atz >49 && atz <59)
            {
                Console.WriteLine("Atzīme E");
            }
            else
            {
                Console.WriteLine("Atzīme F");
            }
        }
        public static void Uzd4()
        {
            Console.WriteLine("Ievadiet skaitli A");
            int A=Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Ievadiet skaitli B");
            int B=Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Ievadiet ko gribat darīt ar A un B 1=+, 2=-,3=* un 4=/");
            int ksk=Convert.ToInt32(Console.ReadLine());
            switch (ksk)
            {
                case 1: Console.WriteLine(A+B); break;
                case 2: Console.WriteLine(A-B); break;
                case 3: Console.WriteLine(A*B); break;
                case 4: if (B == 0) { Console.WriteLine("Nevar dalit ar nulli"); } else { Console.WriteLine(A / B); } ; break;
            }
        }
        public static void Uzd5()
        {
            Console.WriteLine("Ieavdiet gadu");
            int gads=Convert.ToInt32(Console.ReadLine());
            if ((gads%4 == 0 && gads%100 != 0) || gads%400 == 0)
            {
                Console.WriteLine("Gads ir garais");
            }
            else
            {
                Console.WriteLine("Gads nav garais");
            }
        }
        public static void Uzd6()
        {
            Console.WriteLine("Ievadiet savu vecumu");
            int bilete = 10;
            int vecums=Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("Vai tu esi students? (true/false)");
            bool irStudents=bool.Parse(Console.ReadLine());
            if (vecums < 6)
            {
                Console.WriteLine("biletes cena {0}$, sānemtā atlaide 100%, biletes cena= {1}$", bilete, bilete * 0);
            }
            else if (vecums > 5 && vecums < 18)
            {
                Console.WriteLine("Biletes cena:{0}$, sanemta atlaide 50%, biletes cena:{1}$", bilete, bilete * 0.5);
            }
            else if ((vecums > 17 || vecums < 26) && irStudents)
            {
                Console.WriteLine("Biletes cena: {0}$, ja esi students atlaide 25%, biletes cena ar atlaidi: {1}$",bilete,bilete-bilete*0.25);
            }
            else if (vecums >64)
            {
                Console.WriteLine("Biletes cena:{0}$, sanemta atlaide 20%, biletes cena:{1}$", bilete, bilete * 0.2);
            }
            else
            {
                Console.WriteLine("Biletes cena:{0}$",bilete);
            }
        }
    }
}