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