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 averageGrade = double.Parse(Console.ReadLine());
- double minimalSalary = double.Parse(Console.ReadLine());
- double socialScholarship = Math.Floor(minimalSalary * 0.35);
- double excellentScholarship = Math.Floor(averageGrade * 25);
- if (income < minimalSalary && averageGrade > 5.5)//има правo и на двете стипендии
- {
- if (socialScholarship == excellentScholarship)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship}BGN");
- }
- else if (socialScholarship > excellentScholarship)
- {
- Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
- }
- else if (socialScholarship < excellentScholarship)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
- }
- }
- else if (income < minimalSalary && averageGrade > 4.5)
- {
- Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
- }
- else if (averageGrade > 5.5)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement