Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace FinalCompetition
- {
- class Program
- {
- static void Main(string[] args)
- {
- int dancers = int.Parse(Console.ReadLine());
- double points = double.Parse(Console.ReadLine());
- string season = Console.ReadLine();
- string destination = Console.ReadLine();
- double totalSum = dancers * points;
- if (destination == "Abroad")
- {
- totalSum *= 1.5;
- if (season == "summer")
- {
- totalSum *= 0.9;
- }
- else
- {
- totalSum *= 0.85;
- }
- }
- else
- {
- if (season == "summer")
- {
- totalSum *= 0.95;
- }
- else
- {
- totalSum *= 0.92;
- }
- }
- Console.WriteLine($"Charity - { totalSum * 0.75:F2}");
- Console.WriteLine($"Money per dancer - { totalSum * 0.25 / dancers: F2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement