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