Advertisement
Guest User

Scholarship8

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