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 salary = double.Parse(Console.ReadLine());
- double grades = double.Parse(Console.ReadLine());
- double minWage = double.Parse(Console.ReadLine());
- double socialScholarship = minWage * 35 / 100;
- double excellentScholarship = grades * 25;
- if (grades >= 5.5)
- {
- if (excellentScholarship >= socialScholarship || salary > minWage)
- Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(excellentScholarship));
- else Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(socialScholarship));
- }
- else if (salary < minWage && grades > 4.5)
- {
- Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(socialScholarship));
- }
- else Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement