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