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