Problem A Movie Going Filename Movies Py Last Week I Was Able To Go To See The New Dr Strange Movie I Thought It Wa 1 (35.77 KiB) Viewed 19 times
Problem A Movie Going Filename Movies Py Last Week I Was Able To Go To See The New Dr Strange Movie I Thought It Wa 2 (29.08 KiB) Viewed 19 times
Problem A Movie Going Filename Movies Py Last Week I Was Able To Go To See The New Dr Strange Movie I Thought It Wa 3 (43.53 KiB) Viewed 19 times
Problem A - Movie Going Filename: movies.py Last week I was able to go to see the new Dr. Strange movie. I thought it was pretty awesome. When I was looking at buying tickets I wanted to make sure I got as many discounts as I could get. By default a movie ticket is $15. If you go before 5pm, the ticket price is $12.50. If you plan on buying in bulk ( 5 or more tickets) you will receive a 10% discount. If you are a student, you get a 15% discount. Write a program that asks the user if they are going to the movie before 5PM ( 1 for yes, 0 for no). how many tickets they are going to buy (an integer greater than 1), and if they are a student ( 1 for yes, 0 for no). Print out the total cost for the amount of tickets you would like to buy. Sample Case 1: Are you going to the movie before 5PM? (1-Yes, 0-No) 0 How many people are going? 2 Are you a student? (1-Yes, 0 - No)
Sample Case 1: Are you going to the movie before 5PM? (1-Yes, 0 - No) 0 How many people are going? 2 Are you a student? (1-Yes, 0− No ) 0 The group's price is $30.00. Sample Case 2: Are you going to the movie before 5PM? (1-Yes, 0−No) 1 How many people are going? 1 Are you a student? (1-Yes, 0− No) 1 The group's price is $10.62. "If you are getting 10.63 this is also correct. The way you round does not matter. Sample Case 3:
Are you going to the movie before 5PM ? (1 - Yes, 0 - No) How many people are going? 5 Are you a student? (1 - Yes, 0−No) 1 The group's price is $57.37. "If you are getting 57.38 this is also correct. Rubric (Points Total: 8 points) - Header Comment - 1 pt - Other Style Issues - 2 pt - Filename is movies.py - 1 point - Read in input into three different integers - 1 pt - Using an if statement(s) the program does the following: - Calculates general price correctly - 1 point - Calculates early (5pm) price correctly - 1 point - Calculates bulk discount correctly - 1 point - Calculates student discount correctly - 1 point
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!