Advertisement
zmuletarova

Untitled

Sep 20th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.97 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.5)
  18.  
  19. {
  20. Console.WriteLine($"You get a Social scholarship {sizeOfSocialScholarship} BGN");
  21. }
  22.  
  23. else if (success >= 5.5)
  24.  
  25. {
  26. Console.WriteLine($"You get a scholarship for excellent results {sizeofScoreScholarship} BGN");
  27.  
  28. }
  29.  
  30.  
  31. else if (income < MRZ && success >= 5.5 && sizeOfSocialScholarship > sizeofScoreScholarship)
  32. {
  33.  
  34. Console.WriteLine($"You get a Social scholarship {sizeOfSocialScholarship} BGN");
  35.  
  36. }
  37.  
  38.  
  39. else if (income < MRZ && success >= 5.5)
  40.  
  41. {
  42. if (sizeofScoreScholarship > sizeOfSocialScholarship)
  43. {
  44. Console.WriteLine($"You get a scholarship for excellent results {sizeofScoreScholarship} BGN");
  45. }
  46.  
  47. else if (sizeofScoreScholarship == sizeOfSocialScholarship)
  48. {
  49. Console.WriteLine($"You get a scholarship for excellent results {sizeofScoreScholarship} BGN");
  50. }
  51.  
  52. else
  53. {
  54. Console.WriteLine($" You get a Social scholarship {sizeOfSocialScholarship} BGN");
  55. }
  56.  
  57. }
  58.  
  59.  
  60. else
  61. {
  62. Console.WriteLine("You cannot get a scholarship!");
  63. }
  64.  
  65.  
  66. }
  67. }
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement