Guest User

Untitled

a guest
Apr 14th, 2019
227
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Oscars_Week_In_Cinema___no_time_violation
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string movie = Console.ReadLine();
  14. string hallType = Console.ReadLine();
  15. int ticketsSold = int.Parse(Console.ReadLine());
  16.  
  17. double ticketPrice = 0;
  18.  
  19.  
  20. if (movie == "A Star Is Born")
  21. {
  22. switch (hallType)
  23. {
  24. case "normal": ticketPrice = 7.50; break;
  25. case "luxury": ticketPrice = 10.50; break;
  26. case "ultra luxury": ticketPrice = 13.50; break;
  27. default:
  28. break;
  29. }
  30. }
  31. if (movie == "Bohemian Rhapsody")
  32. {
  33. switch (hallType)
  34. {
  35. case "normal": ticketPrice = 7.35; break;
  36. case "luxury": ticketPrice = 9.45; break;
  37. case "ultra luxury": ticketPrice = 12.75; break;
  38. default:
  39. break;
  40. }
  41. }
  42. if (movie == "Green Book")
  43. {
  44. switch (hallType)
  45. {
  46. case "normal": ticketPrice = 8.15; break;
  47. case "luxury": ticketPrice = 10.25; break;
  48. case "ultra luxury": ticketPrice = 13.25; break;
  49. default:
  50. break;
  51. }
  52. }
  53. if (movie == "The Favourite")
  54. {
  55. switch (hallType)
  56. {
  57. case "normal": ticketPrice = 8.75; break;
  58. case "luxury": ticketPrice = 11.55; break;
  59. case "ultra luxury": ticketPrice = 13.95; break;
  60. default:
  61. break;
  62. }
  63. }
  64.  
  65. double moneyMade = ticketsSold * ticketPrice;
  66. Console.WriteLine($"{movie} -> {moneyMade:f2} lv.");
  67. }
  68. }
  69. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×