Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _08.Scholarship
  4. {
  5. class Scholarship
  6. {
  7. static void Main(string[] args)
  8. {
  9. double salaries = double.Parse(Console.ReadLine());
  10. double avgGrades = double.Parse(Console.ReadLine());
  11. double minSalary = double.Parse(Console.ReadLine());
  12.  
  13. double socialScolar = minSalary * 0.35;
  14. double excellent = avgGrades * 25;
  15.  
  16.  
  17.  
  18. if ((salaries < minSalary) && (avgGrades > 4.5) && (avgGrades <= 6) && (socialScolar > excellent))
  19. {
  20. //socialScolar = minSalary * 0.35;
  21. Console.WriteLine("You get a Social scholarship " + Math.Floor(socialScolar) + " BGN");
  22. }
  23. else if ((avgGrades >= 5.5) && (avgGrades <= 6) && (socialScolar <= excellent))
  24. {
  25. //excellent = avgGrades * 25;
  26. Console.WriteLine("You get a scholarship for excellent results " + Math.Floor(excellent) + " BGN");
  27. }
  28. else
  29. {
  30. Console.WriteLine("You cannot get a scholarship!");
  31. }
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement