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