Advertisement
Guest User

Untitled

a guest
Jan 26th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 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 Scholarship
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. double salary = double.Parse(Console.ReadLine());
  14. double grades = double.Parse(Console.ReadLine());
  15. double minWage = double.Parse(Console.ReadLine());
  16.  
  17. double socialScholarship = minWage * 35 / 100;
  18. double excellentScholarship = grades * 25;
  19. if (grades >= 5.5)
  20. {
  21. if (excellentScholarship >= socialScholarship || salary > minWage)
  22. Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(excellentScholarship));
  23. else Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(socialScholarship));
  24. }
  25. else if (salary < minWage && grades > 4.5)
  26. {
  27. Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(socialScholarship));
  28. }
  29.  
  30. else Console.WriteLine("You cannot get a scholarship!");
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement