Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace OscarsWeekInCinema
- {
- class Program
- {
- static void Main()
- {
- string movieName = Console.ReadLine();
- string typeOfHall = Console.ReadLine();
- int ticketCount = int.Parse(Console.ReadLine());
- double sum = ticketCount;
- if (movieName == "A Star Is Born")
- {
- if (typeOfHall == "normal")
- {
- sum *= 7.5;
- }
- else if (typeOfHall == "luxury")
- {
- sum *= 10.5;
- }
- else if (typeOfHall == "ultra luxury")
- {
- sum *= 13.5;
- }
- }
- else if (movieName == "Bohemian Rhapsody")
- {
- if (typeOfHall == "normal")
- {
- sum *= 7.35;
- }
- else if (typeOfHall == "luxury")
- {
- sum *= 9.45;
- }
- else if (typeOfHall == "ultra luxury")
- {
- sum *= 12.75;
- }
- }
- else if (movieName == "Green Book")
- {
- if (typeOfHall == "normal")
- {
- sum *= 8.15;
- }
- else if (typeOfHall == "luxury")
- {
- sum *= 10.25;
- }
- else if (typeOfHall == "ultra luxury")
- {
- sum *= 13.25;
- }
- }
- else if (movieName == "The Favourite")
- {
- if (typeOfHall == "normal")
- {
- sum *= 8.75;
- }
- else if (typeOfHall == "luxury")
- {
- sum *= 11.55;
- }
- else if (typeOfHall == "ultra luxury")
- {
- sum *= 13.95;
- }
- }
- Console.WriteLine($"{movieName} -> {sum:f2} lv.");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement