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