Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Scholarship
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. double income = double.Parse(Console.ReadLine());
  10. double averageGrade = double.Parse(Console.ReadLine());
  11. double minWage = double.Parse(Console.ReadLine());
  12.  
  13. double socialScholarship = Math.Floor(minWage * 0.35);
  14. double gradeScholarship = Math.Floor(averageGrade * 25);
  15.  
  16. if (income<minWage && averageGrade>4.5)
  17. {
  18. if (averageGrade<5.5)
  19. {
  20. Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
  21. }
  22. else
  23. {
  24. if (socialScholarship>gradeScholarship)
  25. {
  26. Console.WriteLine($"You get a Social scholarship {socialScholarship} BGN");
  27. }
  28. else
  29. {
  30. Console.WriteLine($"You get a scholarship for excellent results {gradeScholarship} BGN");
  31. }
  32. }
  33. }
  34.  
  35. else if (averageGrade>=5.5)
  36. {
  37. Console.WriteLine("You get a scholarship for excellent results {gradeScholarship} BGN");
  38. }
  39. else
  40. {
  41. Console.WriteLine("You cannot get a scholarship!");
  42. }
  43.  
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement