Yachkov

Untitled

Jan 22nd, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.51 KB | None | 0 0
  1. using System;
  2. using System.ComponentModel.Design;
  3. using System.Globalization;
  4. using System.Security.Cryptography;
  5.  
  6. namespace SomeExcercises
  7. {
  8.     class Program
  9.     {
  10.         static void Main(string[] args)
  11.         {
  12.             double socialScholarship = 0.0;
  13.             double excellentScholarship = 0.0;
  14.             double income = double.Parse(Console.ReadLine());
  15.             double averageMark = double.Parse(Console.ReadLine());
  16.             double minimalWage = double.Parse(Console.ReadLine());
  17.             socialScholarship = minimalWage * 0.35;
  18.             excellentScholarship = averageMark * 25;
  19.  
  20.  
  21.  
  22.             if (socialScholarship > minimalWage && averageMark > 4.50)
  23.             {
  24.                 Console.WriteLine($"You get Social scholarship {socialScholarship} BGN");
  25.             }
  26.             else if (averageMark >= 5.5)
  27.             {
  28.                 Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
  29.             }
  30.             else if (averageMark < 4.50)
  31.             {
  32.                 Console.WriteLine("You cannot get a scholarship!");
  33.             }
  34.  
  35.             else if (socialScholarship > excellentScholarship && averageMark > 5.50)
  36.             {
  37.                 Console.WriteLine($"You get Social scholarship {socialScholarship} BGN");
  38.             }
  39.             else
  40.             {
  41.                 Console.WriteLine($"You get a scholarship for excellent results {excellentScholarship} BGN");
  42.             }
  43.  
  44.  
  45.         }
  46.  
  47.     }
  48. }
  49.  
  50.  
  51.  
  52.  
Advertisement
Add Comment
Please, Sign In to add comment