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