Advertisement
Valantina

OscarsWeekInCinema/Ex

Jun 14th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. using System;
  2.  
  3. namespace OscarsWeekInCinema
  4. {
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. string movie = Console.ReadLine();
  10. string hallType = Console.ReadLine();
  11. int ticketsSold = int.Parse(Console.ReadLine());
  12.  
  13. double ticketPrice = 0;
  14.  
  15. if (movie == "A Star Is Born")
  16. {
  17. if (hallType == "normal")
  18. {
  19. ticketPrice = 7.50;
  20. }
  21. else if (hallType == "luxury")
  22. {
  23. ticketPrice = 10.50;
  24. }
  25. else if (hallType == "ultra luxury")
  26. {
  27. ticketPrice = 13.50;
  28. }
  29. }
  30. if (movie == "Bohemian Rhapsody")
  31. {
  32. if (hallType == "normal")
  33. {
  34. ticketPrice = 7.35;
  35. }
  36. else if (hallType == "luxury")
  37. {
  38. ticketPrice = 9.45;
  39. }
  40. else if (hallType == "ultra luxury")
  41. {
  42. ticketPrice = 12.75;
  43. }
  44. }
  45. if (movie == "Green Book")
  46. {
  47. if (hallType == "normal")
  48. {
  49. ticketPrice = 8.15;
  50. }
  51. else if (hallType == "luxury")
  52. {
  53. ticketPrice = 10.25;
  54. }
  55. else if (hallType == "ultra luxury")
  56. {
  57. ticketPrice = 13.25;
  58. }
  59. }
  60. if (movie == "The Favourite")
  61. {
  62. if (hallType == "normal")
  63. {
  64. ticketPrice = 8.75;
  65. }
  66. else if (hallType == "luxury")
  67. {
  68. ticketPrice = 11.55;
  69. }
  70. else if (hallType == "ultra luxury")
  71. {
  72. ticketPrice = 13.95;
  73. }
  74. }
  75.  
  76. double moneyMade = ticketsSold * ticketPrice;
  77. Console.WriteLine($"{movie} -> {moneyMade:f2} lv.");
  78. }
  79. }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement