Advertisement
OOrlin

Scholaraship

Oct 21st, 2019
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. using System;
  2.  
  3. namespace scholarship
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double Income = double.Parse(Console.ReadLine());
  10. double avarageSucces = double.Parse(Console.ReadLine());
  11. double MinSalary = double.Parse(Console.ReadLine());
  12.  
  13. double SocialPrice = Math.Floor(MinSalary*0.35);
  14. double ExcellentPrice = Math.Floor(avarageSucces * 25);
  15.  
  16. if (Income <= MinSalary)
  17. {
  18.  
  19. if (avarageSucces >= 5.5 && avarageSucces <= 6.0)
  20. {
  21. if (SocialPrice > ExcellentPrice)
  22. {
  23. Console.WriteLine($"You get a Social scholarship {SocialPrice} BGN");
  24. }
  25. else if (ExcellentPrice > SocialPrice)
  26. {
  27. Console.WriteLine($"You get a scholarship for excellent results {ExcellentPrice} BGN");
  28. }
  29. else if (ExcellentPrice == SocialPrice)
  30. {
  31. Console.WriteLine($"You get a scholarship for excellent results {ExcellentPrice} BGN");
  32. }
  33. }
  34. else if (avarageSucces > 4.5)
  35. {
  36. Console.WriteLine($"You get a Social scholarship {SocialPrice} BGN");
  37. }
  38. else if (avarageSucces < 4.5)
  39. {
  40. Console.WriteLine("You cannot get a scholarship!");
  41. }
  42. }
  43. else if (Income>= MinSalary)
  44. {
  45. if (avarageSucces >= 5.50 && avarageSucces <= 6)
  46. {
  47. Console.WriteLine($"You get a scholarship for excellent results {ExcellentPrice} BGN");
  48. }
  49. else if (avarageSucces < 5.5)
  50. {
  51. Console.WriteLine("You cannot get a scholarship!");
  52. }
  53. else
  54. {
  55. Console.WriteLine("You cannot get a scholarship!");
  56. }
  57.  
  58.  
  59. }
  60.  
  61. else
  62. {
  63.  
  64. Console.WriteLine("You cannot get a scholarship!");
  65. }
  66.  
  67.  
  68. }
  69. }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement