Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the code in Python. Please write the code using input and if...else statements. Include a header comment on each code. . You and your

Write the code in Python. Please write the code using input and if...else statements.
Include a header comment on each code.
image text in transcribed
. You and your friends are going to attend the Knightrola Region Cinemaplex. The Cinemaplex's ticket prices vary based on the size of your group, and whether or not you are a Small Monster Collector The individual ticket price for Small Monster Collectors is $9.50. The individual ticket price for anyone else is $12. If there are more than 25 people in a group, the group ticket price is $7.25 per person. You are the only Small Monster Collector in your group. Create a program that correctly determines the price the whole group will pay depending on how large the group is. This assignment requires you to accept input from the user determine which of two cases you have compute the output, and print a result Prompt the user for the number of moviegoers in the group. Accept the number of moviegoers from the user. You are guaranteed that this will be an integer. Determine whether the group gets the group rate or not. Print out the correct result either way, Submit your file as movies.py . Sample Run 1 Enter the number of moviegoers: 3 The total ticket price is 5 33.50. Sample Run 2 Enter the number of moviegoers: 27 The total ticket price is $195.75

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions