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 incomeBGN = double.Parse(Console.ReadLine());
- double midGrade = double.Parse(Console.ReadLine());
- double minSalary = double.Parse(Console.ReadLine());
- double socialS = Math.Floor(minSalary * 0.35);
- double excellentR = Math.Floor(midGrade * 25);
- if (incomeBGN < minSalary && midGrade > 4.50)
- {
- Console.WriteLine($"You get a Social scholarship {socialS} BGN");
- }
- else if (midGrade >= 5.50)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentR} BGN");
- }
- else if (incomeBGN <= minSalary && midGrade >= 5.50 && excellentR >= socialS)
- {
- Console.WriteLine($"You get a scholarship for excellent results {excellentR} BGN");
- }
- else if (incomeBGN <= minSalary && midGrade >= 5.50 && excellentR < socialS)
- {
- Console.WriteLine($"You get a Social scholarship {socialS} BGN");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement