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