Advertisement
Guest User

Untitled

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