Advertisement
VickSuna

Untitled

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