Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Scholarship
- {
- class Program
- {
- static void Main(string[] args)
- {
- double moneyGain = double.Parse(Console.ReadLine());
- double grade = double.Parse(Console.ReadLine());
- double minWage = double.Parse(Console.ReadLine());
- double social = Math.Floor(minWage * 0.35);
- double scolarship = Math.Floor(grade * 25);
- if (grade < 4.50)
- {
- Console.WriteLine("You cannot get a scholarship");
- }
- else if (grade >= 4.50 && grade < 5.50)
- {
- if (minWage < moneyGain)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (minWage >= moneyGain)
- {
- Console.WriteLine($"You get a Social scholarship {social} BGN");
- }
- }
- else if (grade >= 5.50)
- {
- if (minWage < moneyGain)
- {
- Console.WriteLine($"You get a scholarship for excellent results {scolarship} BGN");
- }
- else if (minWage >= moneyGain && social > scolarship)
- {
- Console.WriteLine($"You get a Social scholarship {social} BGN");
- }
- else
- {
- Console.WriteLine($"You get a scholarship for excellent results {scolarship} BGN");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement