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