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