Advertisement
Anzzhhela98

gg

Jun 17th, 2020
317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.42 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Loopsk
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double income = double.Parse(Console.ReadLine());
  10.             double grade = double.Parse(Console.ReadLine());
  11.            double minIncome = double.Parse(Console.ReadLine());
  12.  
  13.             double socialScoreShip = Math.Floor(minIncome * 0.35);
  14.             double excellentScoreShip = Math.Floor(grade*25);
  15.  
  16.             if (income<=minIncome && grade>=5.5 && excellentScoreShip>=socialScoreShip)
  17.             {
  18.                 Console.WriteLine($"You get a scholarship for excellent result{excellentScoreShip} BGN");
  19.             }
  20.             else if (income <= minIncome && grade >= 5.5
  21.                 && excellentScoreShip < socialScoreShip)
  22.             {
  23.                 Console.WriteLine($"You get a Social scholarship {socialScoreShip} BGN");
  24.             }
  25.             else if (income>minIncome&&grade>=5.5 )
  26.             {
  27.                 Console.WriteLine($"You get a scholarship for excellent result{excellentScoreShip} BGN");
  28.             }
  29.             else if (income<=minIncome && grade>4.5)
  30.             {
  31.                 Console.WriteLine($"You get a Social scholarship {socialScoreShip} BGN");
  32.             }
  33.             else
  34.             {
  35.                 Console.WriteLine("You cannot get a scholarship!");
  36.             }
  37.            
  38.  
  39.            
  40.            
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement