Advertisement
Guest User

Untitled

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