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