Advertisement
Grimmjow1

scholarShip

Jan 23rd, 2019
109
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. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. namespace Scolarship
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. double income = double.Parse(Console.ReadLine());
  13. double grade = double.Parse(Console.ReadLine());
  14. double minIncome = double.Parse(Console.ReadLine());
  15. double social = minIncome * 0.35;
  16. double notSocial = grade * 25;
  17.  
  18. if (grade >= 5.50)
  19. {
  20. if (income < minIncome && social > notSocial)
  21. {
  22. Console.WriteLine($"You get a Social scholarship {Math.Floor(social)} BGN");
  23. }
  24. else
  25. {
  26. Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(notSocial)} BGN");
  27. }
  28. }
  29. else if (grade > 4.50 && income < minIncome)
  30. {
  31. Console.WriteLine($"You get a Social scholarship {Math.Floor(social)} BGN");
  32. }
  33. else
  34. {
  35. Console.WriteLine("You cannot get a scholarship!");
  36. }
  37.  
  38. }
  39. }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement