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