Advertisement
Valantina

Sholarship

Apr 26th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.67 KB | None | 0 0
  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.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement