Advertisement
Guest User

Untitled

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