Advertisement
Guest User

Untitled

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