SHARE
TWEET

Sholarship

Valantina Apr 26th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace Sholarship
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.            
  10.                 double incom = double.Parse(Console.ReadLine());
  11.                 double averageSuccess = double.Parse(Console.ReadLine());
  12.                 double minWage = double.Parse(Console.ReadLine());
  13.                 double socialWage = Math.Round(minWage * 0.35);
  14.                 double exellentWage = Math.Floor(averageSuccess * 25);
  15.  
  16.                 if (incom > minWage && averageSuccess < 4.50)
  17.                 {
  18.                     Console.WriteLine("You cannot get a scholarship!");
  19.                 }
  20.                 else if (incom < minWage && averageSuccess >= 5.50 && socialWage >= exellentWage)
  21.                 {
  22.                     Console.WriteLine($"You get a Social scholarship {socialWage} BGN");
  23.                 }
  24.                 else if (incom < minWage && averageSuccess >= 5.50 && socialWage < exellentWage)
  25.                 {
  26.                     Console.WriteLine($"You get a scholarship for excellent results {exellentWage} BGN");
  27.                 }
  28.                 else if (incom < minWage && averageSuccess > 4.50)
  29.                 {
  30.                     Console.WriteLine($"You get a Social scholarship {socialWage} BGN");
  31.                 }
  32.                 else if (incom >= minWage && averageSuccess >= 5.50)
  33.                 {
  34.                     Console.WriteLine($"You get a scholarship for excellent results {exellentWage} BGN");
  35.                 }
  36.                 else
  37.                 {
  38.                     Console.WriteLine("You cannot get a scholarship!");
  39.                 }
  40.             }
  41.         }
  42.     }
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