Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace ConsoleApp1
- {
- class Program
- {
- static void Main(string[] args)
- {
- var income = double.Parse(Console.ReadLine());
- var gpa = double.Parse(Console.ReadLine());
- var minWage = double.Parse(Console.ReadLine());
- var social = Math.Floor(minWage * 0.35);
- var scholarship = Math.Floor(gpa * 25);
- var output = string.Empty;
- if (gpa < 4.5 || gpa < 5.5 && income > minWage)
- {
- output = "You cannot get a scholarship!";
- }
- else if (gpa > 4.5 && gpa < 5.5 && income < minWage)
- {
- output = $"You get a Social scholarship {social} BGN";
- }
- else if (income > minWage && gpa >= 5.5)
- {
- output = $"You get a scholarship for excellent results {scholarship} BGN";
- }
- else
- {
- if (social > scholarship)
- {
- output = $"You get a Social scholarship {social} BGN";
- }
- else
- {
- output = $"You get a scholarship for excellent results {scholarship} BGN";
- }
- }
- Console.WriteLine(output);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement