Advertisement
AnastasiyaG

Untitled

Sep 20th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. using System;
  2.  
  3. public class Program
  4. {
  5. public static void Main()
  6. {
  7.  
  8. double earn = double.Parse(Console.ReadLine());
  9. double score = double.Parse(Console.ReadLine());
  10. double min = double.Parse(Console.ReadLine());
  11. double soc = Math.Floor(min*0.35);
  12. double exellent = Math.Floor(score*25);
  13.  
  14.  
  15.  
  16. if (score <=4.50 || min<earn)
  17. {
  18. Console.WriteLine("You cannot get a scholarship!");
  19. }
  20.  
  21.  
  22. else if (score <5.50 && score > 4.50)
  23. {
  24. if (earn < min )
  25. {
  26.  
  27. Console.WriteLine("You get a Social scholarship {0} BGN", soc);
  28.  
  29. }
  30.  
  31. }
  32.  
  33. else if (score > 5.50)
  34.  
  35. { if (soc> exellent )
  36. {
  37. Console.WriteLine("You get a Social scholarship {0} BGN", soc);
  38. }
  39. else
  40. Console.WriteLine("You get a scholarship for exellent results {0} BGN", exellent);
  41.  
  42. }
  43.  
  44. else if (score==5.50)
  45. { if (soc > exellent )
  46. {
  47. Console.WriteLine("You get a Social scholarship {0} BGN", soc);
  48. }
  49. else if (soc< exellent || soc == exellent)
  50. {
  51.  
  52. Console.WriteLine("You get a scholarship for exellent results {0} BGN", exellent);
  53.  
  54. }
  55. }
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65. }
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement