SHARE
TWEET

Untitled

a guest Apr 2nd, 2019 100 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 _09.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.  
  19.              if (averageSuccess<4.50)
  20.             {
  21.                 Console.WriteLine("You cannot get a scholarship!");
  22.             }
  23.             else if (incomeInLeva > minimalSalary && averageSuccess < 5.50)
  24.             {
  25.                 Console.WriteLine("You cannot get a scholarship!");
  26.             }
  27.             else if (averageSuccess >= 5.5 && incomeInLeva > minimalSalary)
  28.             {
  29.                 Console.WriteLine($"You get a scholarship for excellent results {ScholarshipForExcellentResults} BGN");
  30.             }
  31.             else if (incomeInLeva <= minimalSalary && averageSuccess >= 5.50)
  32.             {
  33.                 if (SocialScholarship > ScholarshipForExcellentResults)
  34.                 {
  35.                     Console.WriteLine($"You get a Social scholarship {SocialScholarship} BGN");
  36.                 }
  37.                 else
  38.                 {
  39.                     Console.WriteLine($"You get a scholarship for excellent results {ScholarshipForExcellentResults} BGN");
  40.                 }
  41.             }
  42.            
  43.             else if (incomeInLeva <= minimalSalary && averageSuccess >= 4.50 && averageSuccess < 5.50)
  44.             {
  45.                 Console.WriteLine($"You get a Social scholarship {SocialScholarship} BGN");
  46.             }
  47.            
  48.            
  49.         }
  50.     }
  51. }
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