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 _02.Scholarship
- {
- class Program
- {
- static void Main(string[] args)
- {
- var studentIncome = double.Parse(Console.ReadLine());
- var studentGrade = double.Parse(Console.ReadLine());
- var minimalCheck = double.Parse(Console.ReadLine());
- var poorScolarship = minimalCheck - (minimalCheck * 0.65);
- var gradeScolarship = studentGrade * 25;
- if (studentIncome < minimalCheck && studentGrade < 4.5)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if(studentIncome > minimalCheck && studentGrade < 4.5)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (studentIncome > minimalCheck && studentGrade >= 4.5 && studentGrade < 5.5)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (studentIncome < minimalCheck && studentGrade >= 4.5 && studentGrade < 5.5)
- {
- Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(poorScolarship));
- }
- else if (studentIncome >= minimalCheck && studentGrade >= 5.5)
- {
- Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(gradeScolarship));
- }
- else if (studentIncome < minimalCheck && studentGrade >= 5.5)
- {
- if (poorScolarship > gradeScolarship)
- {
- Console.WriteLine("You get a Social scholarship {0} BGN", Math.Floor(poorScolarship));
- }
- else if (poorScolarship < gradeScolarship)
- {
- Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(gradeScolarship));
- }
- else
- {
- Console.WriteLine("You get a scholarship for excellent results {0} BGN", Math.Floor(gradeScolarship));
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement