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