Pretorianbg

scholarship

Sep 23rd, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Schoarship
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double income = double.Parse(Console.ReadLine());
  14. double average = double.Parse(Console.ReadLine());
  15. double minwage = double.Parse(Console.ReadLine());
  16. double social = minwage * 0.35;
  17. double success = average * 0.25;
  18.  
  19. if (average >= 5.50)
  20. {
  21. if (success >= social || income > minwage)
  22. {
  23. Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(success)} BGN");
  24.  
  25. }
  26. else
  27. {
  28. Console.WriteLine($"You get a Social scholarship {Math.Floor(social)} BGN");
  29.  
  30. }
  31.  
  32. }
  33. else if (income < minwage && average > 4.50)
  34. {
  35. Console.WriteLine($"You get a Social scholarship {Math.Floor(social)} BGN");
  36.  
  37. }
  38. else
  39. {
  40. Console.WriteLine("You cannot get a scholarship!");
  41.  
  42. }
  43.  
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment