SHARE
TWEET

Untitled

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