// Adrians Zemturis
// Grupa: 110
// PR: 6.2
// Kompilators: Online GDP 
// https://www.onlinegdb.com/online_csharp_compiler

using System;

namespace PLAYGROUND
{
    public class Program
    {
        // Nočiep Lietotaja Ievadito Skaitli
        static int NLIS(string outp) {
            Console.WriteLine(outp);
            return Convert.ToInt32(Console.ReadLine()); 
        } 
        static void Main(string[] just_one_arg_sad_face) {
            // UZD: SKAITLA ZIMES NOTEIKSANA
            int SZN_input = NLIS("Ludzu ievadiet skaitli!");
            if (SZN_input > 0) {
                Console.WriteLine("Skaitlis ir pozitivs!");
            }
            else if (SZN_input < 0) {
                Console.WriteLine("Skaitlis ir negativs!");
            }
            else
            {
                Console.WriteLine("Skaitlis ir nulletivs!");
            }
            
            // UZD: NEDELAS DIENAS VARDS
            Console.ReadKey();
            Console.Clear();
            int NDV_input = NLIS("Ievadiet nedelas dienu! (1 - 7)");
            switch (NDV_input) {
                case 1:
                    Console.WriteLine("Pirmdiena");
                    break;
                case 2:
                    Console.WriteLine("Otrdiena");
                    break;
                case 3:
                    Console.WriteLine("Tresdiena");
                    break;
                case 4:
                    Console.WriteLine("Ceturdiena");
                    break;
                case 5:
                    Console.WriteLine("Piekdiena");
                    break;
                case 6:
                    Console.WriteLine("Sesdiena");
                    break;
                case 7:
                    Console.WriteLine("Svetdiena");
                    break;
                default:
                    Console.WriteLine("https://acuklinika.lv/pakalpojumi/redzes-lazerkorekcija/");
                    break;
            }
            
            // UZD: VIENKARS KALKULATORS AR SWITCH
            Console.ReadKey();
            Console.Clear();
            int VKAS_A = NLIS("Ievadiet A");
            Console.WriteLine("Ievadiet matematisko operatoru: +,-,*,/ ");
            char VKAS_Char = (char)Console.Read();
            Console.WriteLine();
            int VKAS_B = NLIS("Ievadiet A");
            int VKAS_rezult = 0;
            
            bool blind = false;
            
            switch (VKAS_Char) {
                case '+':
                    VKAS_rezult = VKAS_A + VKAS_B;
                    break;
                case '-':
                    VKAS_rezult = VKAS_A - VKAS_B;
                    break;
                case '*':
                    VKAS_rezult = VKAS_A * VKAS_B;
                    break;
                case '/':
                    VKAS_rezult = VKAS_A / VKAS_B;
                    break;
                default:
                    Console.WriteLine("........");
                    blind = true;
                    break;
            }
            
            if (blind == false) {
                Console.WriteLine($"{VKAS_A} {VKAS_Char} {VKAS_B} ir {VKAS_rezult}");
            }
            
            // UZD: GARAIS GADS
            Console.ReadKey();
            Console.Clear();
            int GG_input = NLIS("Ievadiet gadu, jebkuru gadu!");
            if (GG_input % 4 == 0 && GG_input % 100 == 0 || GG_input % 400 == 0) {
                Console.WriteLine("Ir garais gads!");
            }
            else {
                Console.WriteLine("Nav garais gads!");
            }
            
            // UZD: BILESU ATLAIDES SISTEMA
            Console.ReadKey();
            Console.Clear();
            float BAS_biletes_cena = 10f;
            float BAS_atlaide = 1f;
            
            int BAS_vecums = NLIS("Ievadiet jusu vecumu!");
            Console.WriteLine("Vai esat skolens? (Y/N)");
            string BAS_ir_students_atbilde = Console.ReadLine();
            bool BAS_students = false;
            
            switch (BAS_ir_students_atbilde.ToUpper()) {
                case "Y":
                    BAS_students = true;
                    break;
            }
            
            if (BAS_vecums < 6) {
                BAS_atlaide = 0;
            }
            else if (BAS_vecums >= 6 && BAS_vecums <= 17) {
                BAS_atlaide = 0.5f;
            }
            else if (BAS_vecums >= 18 && BAS_vecums <= 25) {
                BAS_atlaide = 0.75f;
            }
            else if (BAS_vecums >= 65) {
                BAS_atlaide = 0.80f;
            }
            
            Console.WriteLine($"Atlaide: {(1 - BAS_atlaide) * 100}%");
            Console.WriteLine($"Cena: {BAS_biletes_cena * BAS_atlaide}$");
            
        }
    }
}