Advertisement
zmuletarova

Untitled

Sep 20th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 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 success = double.Parse(Console.ReadLine());
  11. double MRZ = double.Parse(Console.ReadLine());
  12.  
  13. double sizeOfSocialScholarship = Math.Floor(0.35 * MRZ);
  14. double sizeofScoreScholarship = Math.Floor(25 * success);
  15.  
  16.  
  17. if (income < MRZ && success > 4.50)
  18. {
  19. Console.WriteLine($"You get a Social scholarship {sizeOfSocialScholarship} BGN");
  20. }
  21.  
  22. else if (success >= 5.50)
  23.  
  24. {
  25. Console.WriteLine($"You get a scholarship for excellent results {sizeofScoreScholarship} BGN");
  26.  
  27. }
  28.  
  29.  
  30. else if (income < MRZ && success >= 5.50 && sizeOfSocialScholarship > sizeofScoreScholarship)
  31. {
  32. Console.WriteLine($"You get a Social scholarship {sizeOfSocialScholarship} BGN");
  33. }
  34.  
  35. else if (income < MRZ && success >= 5.50 && sizeofScoreScholarship >= sizeOfSocialScholarship)
  36. {
  37. Console.WriteLine($"You get a scholarship for excellent results {sizeofScoreScholarship} BGN");
  38. }
  39.  
  40.  
  41. else
  42. {
  43. Console.WriteLine("You cannot get a scholarship!");
  44. }
  45.  
  46.  
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement