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 Income = double.Parse(Console.ReadLine());
- double avarageSucces = double.Parse(Console.ReadLine());
- double MinSalary = double.Parse(Console.ReadLine());
- double SocialPrice = Math.Floor(MinSalary*0.35);
- double ExcellentPrice = Math.Floor(avarageSucces * 25);
- if (Income <= MinSalary)
- {
- if (avarageSucces >= 5.5 && avarageSucces <= 6.0)
- {
- if (SocialPrice > ExcellentPrice)
- {
- Console.WriteLine($"You get a Social scholarship {SocialPrice} BGN");
- }
- else if (ExcellentPrice > SocialPrice)
- {
- Console.WriteLine($"You get a scholarship for excellent results {ExcellentPrice} BGN");
- }
- else if (ExcellentPrice == SocialPrice)
- {
- Console.WriteLine($"You get a scholarship for excellent results {ExcellentPrice} BGN");
- }
- }
- else if (avarageSucces > 4.5)
- {
- Console.WriteLine($"You get a Social scholarship {SocialPrice} BGN");
- }
- else if (avarageSucces < 4.5)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- else if (Income>= MinSalary)
- {
- if (avarageSucces >= 5.50 && avarageSucces <= 6)
- {
- Console.WriteLine($"You get a scholarship for excellent results {ExcellentPrice} BGN");
- }
- else if (avarageSucces < 5.5)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement