Advertisement
Guest User

Scholarship

a guest
Sep 21st, 2018
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.68 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 moneyGain = double.Parse(Console.ReadLine());
  14. double grade = double.Parse(Console.ReadLine());
  15. double minWage = double.Parse(Console.ReadLine());
  16.  
  17. double social = Math.Floor(minWage * 0.35);
  18. double scolarship = Math.Floor(grade * 25);
  19.  
  20. if (grade < 4.50)
  21. {
  22. Console.WriteLine("You cannot get a scholarship");
  23. }
  24. else if (grade >= 4.50 && grade < 5.50)
  25. {
  26. if (minWage < moneyGain)
  27. {
  28. Console.WriteLine("You cannot get a scholarship!");
  29. }
  30. else if (minWage >= moneyGain)
  31. {
  32. Console.WriteLine($"You get a Social scholarship {social} BGN");
  33. }
  34.  
  35. }
  36. else if (grade >= 5.50)
  37. {
  38. if (minWage < moneyGain)
  39. {
  40. Console.WriteLine($"You get a scholarship for excellent results {scolarship} BGN");
  41. }
  42. else if (minWage >= moneyGain && social > scolarship)
  43. {
  44. Console.WriteLine($"You get a Social scholarship {social} BGN");
  45. }
  46. else
  47. {
  48. Console.WriteLine($"You get a scholarship for excellent results {scolarship} BGN");
  49. }
  50. }
  51.  
  52. }
  53. }
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement