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