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