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