Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace SchoolCamp
- {
- class Program
- {
- static void Main(string[] args)
- {
- string season = Console.ReadLine();
- string group = Console.ReadLine();
- int people = int.Parse(Console.ReadLine());
- int night = int.Parse(Console.ReadLine());
- double sum = 0;
- string sport = "";
- if (season == "Winter")
- {
- if (group == "boys")
- {
- sum = 9.6;
- sport = "Judo";
- }
- else if (group == "girls")
- {
- sum = 9.6;
- sport = "Gymnastics";
- }
- else if (group == "mixed")
- {
- sum = 10;
- sport = "Ski";
- }
- }
- else if (season == "Spring")
- {
- if (group == "boys")
- {
- sum = 7.2;
- sport = "Tennis";
- }
- else if (group == "girls")
- {
- sum = 7.2;
- sport = "Athletics";
- }
- else if (group == "mixed")
- {
- sum = 9.5;
- sport = "Cycling";
- }
- }
- else
- {
- if (group == "boys")
- {
- sum = 15;
- sport = "Football";
- }
- else if (group == "girls")
- {
- sum = 15;
- sport = "Volleyball";
- }
- else if (group == "mixed")
- {
- sum = 20;
- sport = "Swimming";
- }
- }
- if (people >= 10 && people < 20)
- {
- sum *= 0.95;
- }
- else if (people >= 20 && people < 50)
- {
- sum *= 0.85;
- }
- else if (people >= 50)
- {
- sum *= 0.5;
- }
- Console.WriteLine($"{sport} {people * sum * night:F2} lv.");
- }
- }
- }
Add Comment
Please, Sign In to add comment