Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Scholarship
- {
- class Program
- {
- static void Main(string[] args)
- {
- double moneyE = double.Parse(Console.ReadLine());
- double mid = double.Parse(Console.ReadLine());
- double minSalary = double.Parse(Console.ReadLine());
- double bonusSocial = 0;
- double bonusExl = 0;
- bonusSocial =Math.Floor(minSalary * 0.35);
- bonusExl =Math.Floor (mid * 25);
- if (moneyE < minSalary && mid > 4.5 && mid < 5.5)
- {
- Console.WriteLine("You get a Social scholarship " + (bonusSocial) + " BGN");
- }
- else if (moneyE >= minSalary && mid >= 5.5)
- {
- Console.WriteLine("You get a scholarship for excellent results " + (bonusExl) + " BGN");
- }
- else if (moneyE < minSalary && mid >= 5.5)
- {
- if (bonusSocial > bonusExl)
- {
- Console.WriteLine("You get a Social scholarship " + (bonusSocial) + " BGN");
- }
- else if (bonusSocial < bonusExl)
- {
- Console.WriteLine("You get a scholarship for excellent results " + (bonusExl) + " BGN");
- }
- else if (bonusExl == bonusSocial)
- {
- Console.WriteLine("You get a scholarship for excellent results " + (bonusExl) + " BGN");
- }
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement