daily pastebin goal
46%
SHARE
TWEET

Scholarship

a guest Mar 24th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Scholarship
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             double incomeInLeva = double.Parse(Console.ReadLine());
  14.             double averageGrade = double.Parse(Console.ReadLine());
  15.             double minimalSallary = double.Parse(Console.ReadLine());
  16.  
  17.             double gradeBasedSchilarship = averageGrade * 25;
  18.             double socialScholarship = minimalSallary * 0.35;
  19.  
  20.             if (incomeInLeva < minimalSallary && averageGrade > 4.5)
  21.             {
  22.                 Console.WriteLine($"You get a Social scholarship {Math.Floor(socialScholarship)} BGN");
  23.             }
  24.             else if (incomeInLeva < minimalSallary && averageGrade < 4.5)
  25.             {
  26.                 Console.WriteLine("You cannot get a scholarship!");
  27.             }
  28.             else if(incomeInLeva > minimalSallary && averageGrade < 5.5)
  29.             {
  30.                 Console.WriteLine("You cannot get a scholarship!");
  31.             }
  32.            else if(averageGrade >=5.5)
  33.             {
  34.                 Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(gradeBasedSchilarship)} BGN");
  35.             }
  36.             else if(gradeBasedSchilarship >= socialScholarship)
  37.             {
  38.                 Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(gradeBasedSchilarship)} BGN");
  39.             }
  40.             else if(socialScholarship > gradeBasedSchilarship)
  41.             {
  42.                 Console.WriteLine($"You get a Social scholarship {Math.Floor(socialScholarship)} BGN");
  43.             }
  44.             else if (gradeBasedSchilarship == socialScholarship)
  45.             {
  46.                 Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(gradeBasedSchilarship)} BGN");
  47.             }
  48.             else
  49.             {
  50.                 Console.WriteLine("You cannot get a scholarship!");
  51.             }
  52.                              
  53.         }
  54.     }
  55. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top