SHARE
TWEET

Untitled

a guest Apr 2nd, 2019 113 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 averageSuccess = double.Parse(Console.ReadLine());
  15.             double minimalSalary = double.Parse(Console.ReadLine());
  16.             double SocialScholarship = Math.Floor(minimalSalary * 0.35);
  17.             double ScholarshipForExcellentResults = Math.Floor(averageSuccess * 25);
  18.             if (incomeInLeva < minimalSalary && averageSuccess > 4.5 && averageSuccess < 5.5 && SocialScholarship > ScholarshipForExcellentResults)
  19.             {
  20.                 Console.WriteLine($"You get a Social Scholarship {SocialScholarship} BGN");
  21.             }
  22.             else if(averageSuccess >= 5.5 && ScholarshipForExcellentResults >= SocialScholarship)
  23.             {
  24.                 Console.WriteLine($"You get a scholarship for excellent results {ScholarshipForExcellentResults} BGN");
  25.             }
  26.             else
  27.             {
  28.                 Console.WriteLine("You cannot get a scholarship!");
  29.             }
  30.  
  31.         }
  32.     }
  33. }
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