/*
Veidoja: Toms Trencis 
Grupa: 110
Praktiskais darbs 6.2
Izmantotais Compiler: https://www.onlinegdb.com/online_csharp_compiler
*/


/*
// 1. uzdevums 
using System;

namespace HelloWorld
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Ievadiet veselu skaitli: ");
int numb = Convert.ToInt32(Console.ReadLine());

if (numb > 0)
{
Console.Write("Ievadītais skaitlis ir pozitīvs.");
}
else if (numb < 0)
{
Console.Write("Ievadītais skaitlis ir negatīvs.");
}
else
{
Console.Write("Ievadītais skaitlis ir nulle.");
}

Console.WriteLine();
}
}
}
*/


// 2. uzdevums


/*
using System;

namespace HelloWorld
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Ievadiet nedēļas dienas numuru (1-7): ");
int Numb = Convert.ToInt32(Console.ReadLine());

switch (Numb)
{
case 1:
Console.WriteLine("Pirmdiena");
break;

case 2:
Console.WriteLine("Otrdiena");
break;

case 3:
Console.WriteLine("Trešdiena");
break;

case 4:
Console.WriteLine("Ceturtdiena");
break;

case 5:
Console.WriteLine("Piektdiena");
break;

case 6:
Console.WriteLine("Sestdiena");
break;

case 7:
Console.WriteLine("Svētdiena");
break;

default:
Console.WriteLine("Nepareizi ievadīti dati!");
break;
}
}
}
}
*/






// 3. uzdevums 


/*
using System;

namespace HelloWorld
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Ievadiet studenta iegūto punktu skaitu: ");
int numb = Convert.ToInt32(Console.ReadLine());

if (numb <= -1)
{
Console.Write("Nepareizi ievadīti dati!");
}

else if (numb <= 49)
{
Console.Write("Jūsu atzīme ir F (0-49");
}

else if (numb <= 59)
{
Console.Write("Jūsu atzīme ir E (50-59).");
}

else if (numb <= 69)
{
Console.Write("Jūsu atzīme ir D (60-69).");
}

else if (numb <= 79)
{
Console.Write("Jūsu atzīme ir C (70-79).");
}

else if (numb <= 89)
{
Console.Write("Jūsu atzīme ir B (80-89)");
}

else if (numb <= 100)
{
Console.Write("Jūsu atzīme ir A (90-100) ");
}

else
{
Console.Write("Nepareizi ievadīti dati!");
}

}
}
}

*/




// 4. uzdevums


/*
using System;
namespace HelloWorld
{
public class Program
{
public static void Main(string[] args)
{
char simbols;
double A, B, rezultats;

Console.Write("Ievadiet pirmo numuru: ");
A = Convert.ToDouble(Console.ReadLine());
Console.Write("Ievadiet otro numuru: ");
B = Convert.ToDouble(Console.ReadLine());

Console.Write("Ievadiet vienu darbības simbolu (+, -, *, /): ");
simbols = (char)Console.Read();

switch (simbols)
{
case '+':
rezultats = A + B;
Console.WriteLine("{0} + {1} = {2}", A, B, rezultats);
break;

case '-':
rezultats = A - B;
Console.WriteLine("{0} - {1} = {2}", A, B, rezultats);
break;

case '*':
rezultats = A * B;
Console.WriteLine("{0} * {1} = {2}", A, B, rezultats);
break;

case '/':
if (B == 0)
{
Console.WriteLine("Nevar dalīt ar 0");
}
else
{
rezultats = A / B;
Console.WriteLine("{0} / {1} = {2}", A, B, rezultats);
}
break;

default:
Console.WriteLine("Invalid Operator");
break;
}
}
}
}


*/


// 5. Uzdevums
/*
using System;

namespace HelloWorld
{
public class Program
{
public static void Main(string[] args)
{
Console.WriteLine("Ievadiet gadu: ");
int gads = Convert.ToInt32(Console.ReadLine());

if (gads % 4 == 0 && gads % 100 != 0 || gads % 400 == 0)
{
Console.WriteLine(gads + " ir garais gads");
}

else
{
Console.WriteLine(gads + " nav garais gads");
}

}
}
}
*/



// 6. uzdevums 
/*
using System;

public class HelloWorld
{
    public static void Main(string[] args)
    {
        Console.WriteLine("Ievadiet jūsu vecumu: ");
        int numb = Convert.ToInt32(Console.ReadLine());

        Console.Write("Vai esat students? (true/false): ");
        bool irStudents = bool.Parse(Console.ReadLine());

        double Pamatcena = 10.0;

        if (numb < 6)
        {
            double galaCena = Pamatcena * 0;
            double Atlaide = Pamatcena / 0.1;

            Console.WriteLine("Biļetes cena ir: " + galaCena);
            Console.WriteLine("Atlaide ir: " + Atlaide + "%");
        }

        else if (numb <= 17)
        {
            double galaCena = Pamatcena / 2;
            double Atlaide = Pamatcena / 0.2;

            Console.WriteLine("Biļetes cena ir: " + galaCena);
            Console.WriteLine("Atlaide ir: " + Atlaide + "%");
        }

        else if (numb <= 25 && irStudents == true)
        {
            double galaCena = (Pamatcena / 4) * 3;
            double Atlaide = Pamatcena / 0.4;

            Console.WriteLine("Biļetes cena ir: " + galaCena);
            Console.WriteLine("Atlaide ir: " + Atlaide + "%");
        }

        else if (numb <= 25 && irStudents == false)
        {
            double galaCena = Pamatcena;
            double Atlaide = Pamatcena - Pamatcena;

            Console.WriteLine("Biļetes cena ir: " + galaCena);
            Console.WriteLine("Atlaide ir: " + Atlaide + "%");
        }

        else if (numb >= 65)
        {
            double galaCena = (Pamatcena / 5) * 4;
            double Atlaide = Pamatcena / 0.5;

            Console.WriteLine("Biļetes cena ir: " + galaCena);
            Console.WriteLine("Atlaide ir: " + Atlaide + "%");
        }

        else
        {
            Console.WriteLine("Nepareizi ievadīts vecums!");
        }
    }
}
*/