Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. double income = double.Parse(Console.ReadLine());
  8. double averageSuccess = double.Parse(Console.ReadLine());
  9. double minimalSalary = double.Parse(Console.ReadLine());
  10. double excellent = Math.Floor(averageSuccess * 25);
  11. double social = Math.Floor(minimalSalary * 0.35);
  12. if (averageSuccess >= 5.50)
  13. {
  14. if (excellent <= social && income < minimalSalary)
  15. {
  16. Console.WriteLine("You get a Social scholarship {0} BGN", social);
  17. }
  18. else
  19. Console.WriteLine("You get a scholarship for excellent results {0} BGN", excellent);
  20.  
  21. }
  22. else if (income < minimalSalary && averageSuccess > 4.50 )
  23. {
  24. Console.WriteLine("You get a Social scholarship {0} BGN", social);
  25. }
  26. else
  27. {
  28. Console.WriteLine("You cannot get a scholarship!");
  29. }
  30.  
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement