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