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 Practice2
- {
- class Program
- {
- static void Main(string[] args)
- {
- double income = double.Parse(Console.ReadLine());
- double grade = double.Parse(Console.ReadLine());
- double minSal = double.Parse(Console.ReadLine());
- if (income >= minSal)
- {
- if (grade < 5.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else
- {
- double scholarship = grade * 25;
- Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(scholarship)} BGN");
- }
- }
- else if (income < minSal)
- {
- if (grade >= 5.50)
- {
- double scholarship1 = minSal * 0.35;
- double scholarship2 = grade * 25;
- if (scholarship1 > scholarship2)
- {
- Console.WriteLine($"You get a Social scholarship {Math.Floor(scholarship1)} BGN");
- }
- else { Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(scholarship2)} BGN"); }
- }
- else if (grade > 4.50 && grade < 5.50)
- {
- double scholarship = minSal * 0.35;
- Console.WriteLine($"You get a Social scholarship {Math.Floor(scholarship)} BGN");
- }
- else
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement