Advertisement
kaloyanTr

Cinema Tickets Task

Feb 9th, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. using System;
  2.  
  3. namespace CinemaTickets
  4. {
  5. class cinemaTickets
  6. {
  7. static void Main(string[] args)
  8. {
  9. string filmShow = Console.ReadLine();
  10. int r = int.Parse(Console.ReadLine());
  11. int c = int.Parse(Console.ReadLine());
  12.  
  13. double Premiere = 12.00;
  14. double Normal = 7.50;
  15. double Discount = 5.00;
  16. double sumFilm;
  17.  
  18. if (filmShow == "Premiere")
  19. {
  20. sumFilm = r * c * Premiere;
  21. Console.WriteLine("{0:f2} leva", sumFilm);
  22. }
  23. else if (filmShow == "Normal")
  24. {
  25. sumFilm = r * c * Normal;
  26. Console.WriteLine("{0:f2} leva", sumFilm);
  27. }
  28. else if(filmShow == "Discount")
  29. {
  30. sumFilm = r * c * Discount;
  31. Console.WriteLine("{0:f2} leva", sumFilm);
  32. }
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement