Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp4
- {
- class Program
- {
- static void Main(string[] args)
- {
- double income = double.Parse(Console.ReadLine());
- double evaluation = double.Parse(Console.ReadLine());
- double minSalary = double.Parse(Console.ReadLine());
- double social = minSalary * 0.35;
- double excellent = evaluation * 25;
- double studentWillGet = 0.0;
- if (income < minSalary && evaluation > 4.50)
- { studentWillGet = social;
- Console.WriteLine($"You get a social scholarship {studentWillGet} BGN");
- }
- else if (evaluation >= 5.50)
- { studentWillGet = excellent;
- Console.WriteLine($" You get a scholarship for excellent results {studentWillGet} BGN");
- }
- else if (social < minSalary && evaluation >= 5.5)
- { studentWillGet = Math.Max(social, excellent); }
- //else if (social == excellent)
- //{ studentWillGet = excellent;
- // Console.WriteLine();
- //}
- else
- Console.WriteLine("You can not get a scholarship!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement