Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- double earnings = double.Parse(Console.ReadLine());
- double averageMark = double.Parse(Console.ReadLine());
- double lowestEarning = double.Parse(Console.ReadLine());
- double socialScholarship = 0.35 * lowestEarning;
- double excellentScholarship = averageMark * 25;
- if (lowestEarning < earnings || averageMark < 4.50)
- {
- Console.WriteLine("You cannot get a scholarship!");
- }
- else if (lowestEarning >= earnings && averageMark >= 4.50)
- {
- Console.WriteLine($"You get a Social scholarship {Math.Floor(socialScholarship)} BGN");
- }
- else if (lowestEarning < earnings && averageMark >= 5.50)
- {
- Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(excellentScholarship)} BGN");
- }
- else
- {
- if (excellentScholarship>=socialScholarship)
- {
- Console.WriteLine($"You get a scholarship for excellent results {Math.Floor(excellentScholarship)} BGN");
- }
- else
- {
- Console.WriteLine($"You get a Social scholarship {Math.Floor(socialScholarship)} BGN");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement