Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp13
- {
- class Program
- {
- static void Main(string[] args)
- {
- double incomeBGN = double.Parse(Console.ReadLine());
- double grade = double.Parse(Console.ReadLine());
- double minimalSalary = double.Parse(Console.ReadLine());
- double socialScholarship = Math.Floor(minimalSalary * 0.35);
- double excellentScholarship = Math.Floor(grade * 25);
- if (incomeBGN > minimalSalary && grade < 4.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (incomeBGN < minimalSalary && grade < 4.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (incomeBGN < minimalSalary && grade > 4.50)
- {
- Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
- }
- else if (incomeBGN > minimalSalary && grade < 4.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (incomeBGN <= minimalSalary && grade < 5.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (incomeBGN >= minimalSalary && grade < 5.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (incomeBGN >= minimalSalary && grade >= 5.50)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
- }
- else if (incomeBGN <= minimalSalary && grade >= 5.50)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
- }
- else if (incomeBGN < minimalSalary && grade >= 5.50 && socialScholarship <= excellentScholarship)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
- }
- else if (incomeBGN < minimalSalary && grade >= 5.50 && socialScholarship > excellentScholarship)
- {
- Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement