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 УПРАЖНЕНИЕ_УСЛОВНИ_КОНСТРУКЦИИ
- {
- class Program
- {
- static void Main(string[] args)
- {
- //3:f2=>3.00
- //3:d2=>0.03
- double incomeLv = double.Parse(Console.ReadLine());
- double grade = double.Parse(Console.ReadLine());
- double minIncomeLv = double.Parse(Console.ReadLine());
- double socialScolarship = Math.Floor(minIncomeLv * 0.35);
- double gradeScolarship = Math.Floor(grade * 25);
- if ((incomeLv >= minIncomeLv && grade < 5.50) || (incomeLv <= minIncomeLv && grade < 4.50))
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (incomeLv <= minIncomeLv && (grade < 5.50 && grade >= 4.50))
- {
- Console.WriteLine($"You get a Social scholarship {socialScolarship} BGN");
- }
- else if (grade >= 5.50)
- {
- Console.WriteLine($"You get a scholarship for excellent results {gradeScolarship} BGN");
- }
- else if (incomeLv <= minIncomeLv && grade >= 5.50)
- {
- if (gradeScolarship > socialScolarship)
- {
- Console.WriteLine($"You get a scholarship for excellent results {gradeScolarship} BGN");
- }
- else if (socialScolarship > gradeScolarship)
- {
- Console.WriteLine($"You get a Social scholarship {socialScolarship} BGN");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement