Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 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 income = double.Parse(Console.ReadLine());
  14. double grade = double.Parse(Console.ReadLine());
  15. double minIncome = double.Parse(Console.ReadLine());
  16. double scholarship1 = grade * 25;
  17. double scholarship2 = minIncome * 0.35;
  18.  
  19. if (income<minIncome&&grade>4.5&&grade<5.5)
  20. {
  21. Console.WriteLine($"You get a Social scholarship {Math.Floor(scholarship2)} BGN");
  22. }
  23.  
  24. else if (grade>=5.5&&income<minIncome&&scholarship2>scholarship1)
  25. {
  26. Console.WriteLine($"You get a Social scholarship {Math.Floor(scholarship2)} BGN");
  27. }
  28.  
  29. else if (grade >= 5.5)
  30. {
  31. Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(scholarship1)} BGN");
  32. }
  33.  
  34. else
  35. {
  36. Console.WriteLine("You cannot get a scholarship!");
  37. }
  38.  
  39. }
  40. }
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement