Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is a python program Students: This content is controlled by your instructor and is not zyBooks content. Direct questions or concerns about this content

image text in transcribed
this is a python program
Students: This content is controlled by your instructor and is not zyBooks content. Direct questions or concerns about this content to your instructor if you have any technical issues with the zyLab submission system, use the Trouble with lab button at the bottom of the lab. 6.23 Lab Ch 6: "nested_loop" - Movie Tickets Write a program to pre-sell a limited number of cinema tickets Each buyer can buy as many as 4 tickets. No more than 20 tickets can be sold. Implement a program that prompts the user for the desired number of tickets and then displays the number of remaining tickets. Repeat until all tickets have been sold and then display the total number of buyers. (Required nested loop to get full credit!) When the program starts, or after a purchase display the remaining tickets as follows: There are currently xx tickets remaining. where xx is the number of remaining tickets. Afterwards, ask the user How many tickets would you like to purchase? If the user enters a number that is greater than 4 or more than the number of remaining tickets then display: forry, you can't buy that many. At the end of the program display the number of buyers The total number of buyers was xx O e A OW

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

Modern Database Management

Authors: Donald A. Carpenter Fred R. McFadden

1st Edition

8178088045, 978-8178088044

More Books

Students also viewed these Databases questions

Question

1. Tie grades to the mastery of important learning targets.

Answered: 1 week ago