Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _08.Scholarship
- {
- class Scholarship
- {
- static void Main(string[] args)
- {
- double salaries = double.Parse(Console.ReadLine());
- double avgGrades = double.Parse(Console.ReadLine());
- double minSalary = double.Parse(Console.ReadLine());
- double socialScolar = minSalary * 0.35;
- double excellent = avgGrades * 25;
- if ((salaries < minSalary) && (avgGrades > 4.5) && (avgGrades <= 6) && (socialScolar > excellent))
- {
- //socialScolar = minSalary * 0.35;
- Console.WriteLine("You get a Social scholarship " + Math.Floor(socialScolar) + " BGN");
- }
- else if ((avgGrades >= 5.5) && (avgGrades <= 6) && (socialScolar <= excellent))
- {
- //excellent = avgGrades * 25;
- Console.WriteLine("You get a scholarship for excellent results " + Math.Floor(excellent) + " BGN");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement