Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. using System;
  2.  
  3. namespace upr1
  4. {
  5. class Program
  6. {
  7. static void Main()
  8. {
  9. var dohod = double.Parse(Console.ReadLine());
  10. var sredenUspeh = double.Parse(Console.ReadLine());
  11. var minimalnaRabotnaZaplata = double.Parse(Console.ReadLine());
  12.  
  13. var socialnaStipendiq = 35 * minimalnaRabotnaZaplata / 100;
  14. var stipendiqZaOtlichenUspeh = sredenUspeh * 25.0;
  15.  
  16. if (dohod > minimalnaRabotnaZaplata && sredenUspeh < 5.50)
  17. Console.WriteLine("You cannot get a scholarship!");
  18.  
  19. else if (dohod > minimalnaRabotnaZaplata && sredenUspeh >= 5.50)
  20. Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(stipendiqZaOtlichenUspeh));
  21. else
  22. {
  23. if (dohod < minimalnaRabotnaZaplata && sredenUspeh >= 4.50 && sredenUspeh <= 5.50)
  24. Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(socialnaStipendiq));
  25. if (dohod < minimalnaRabotnaZaplata && sredenUspeh >= 5.50 && socialnaStipendiq > stipendiqZaOtlichenUspeh)
  26. Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(socialnaStipendiq));
  27. else if (sredenUspeh >= 5.50 && socialnaStipendiq <= stipendiqZaOtlichenUspeh)
  28. Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(stipendiqZaOtlichenUspeh));
  29. }
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement