1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
GaryK [48]
3 years ago
7

Write an application to pre-sell a limited number of cinema tickets. Each buyer can buy as many as 4 tickets. No more than 100 t

ickets can be sold. Implement a program that prompts the user for desired number of tickets and then display the number of remaining tickets. Do not allow the user to enter an invalid number of tickets. Repeat until all tickets have been sold, and then display the total number of buyers. Safe the file as Tickets.java.
Social Studies
1 answer:
aliya0001 [1]3 years ago
8 0

Answer:

Python code explained below

Explanation:

<u>**CODE: </u>

tickets = 100

count = 0

# Loop runs until tickets become zero

while tickets !=0:

   print("There are currently", tickets, "tickets remaining.")

   # Taking input from user for tickets

   userInput = int(input("How many tickets would you like to purchase?"))

   # If user enters more than 4 tickets

   if userInput > 4:

      print("You cannot purchase more than 4 tickets")

   # If available tickets are less than user requirment

   elif tickets < userInput:

      print("Available tickets are less than required")

   else:

       # Count increment to store the users who brought

       count += 1

       # Decrementing the available tickets with the user requirements

       tickets -= userInput

       print("Transaction successful")

   print()

print("All the tickets are sold")

print("The total number of buyers was ", count)

You might be interested in
The case of hugo zacchini, the "human cannonball," was an oddity in appropriation law because
Digiron [165]
I think the answer is the appropriation occurred in a news program.

8 0
3 years ago
8.Which of the following best describes how abolitionists viewed the Fugitive Slave Act of 1850?
masya89 [10]

Answer: B : They resented that it made them help catch runaway slaves

Explanation:

The act was to catch any runaway slaves in the south and including the north. There were many abolitionists in the north, so they hated the act.

HAVE A GREAT DAY!

can u mark me as brainlist :)

7 0
3 years ago
Which of the following methods of arbitration allows the parties input on the decision-maker(s)? a. peer review b. arbitration c
posledela

Answer:

d. all of the above

Explanation:

Arbitration is a legal technique of resolving disputes outside the courts, whereby parties involved in the dispute refer it to an arbitrator (the "arbitrators", "arbiters" or "arbitral tribunal") or arbitrators( one or more persons) , by whose decision (the "award") they may be bound(as in mandatory arbitration) or not(as in voluntary or nonbinding arbitration).

The above methods of arbitration :peer review, arbitration, mediation all allow the dispute parties' input before arbitration decision. Peer review method involves dispute resolution in the workplace whereby employees are able to take disputes to fellow employees and managers to act as arbitrator to resolve disputes which may not be binding on the parties. Mediation on another hand is a dynamic method of dispute resolution where a third party helps to resolve disputes by helping dispute parties negotiate to resolve to dispute. Arbitration however differs from mediation in that the arbitrator makes decisions based on evidence presented and not waiting to negotiate an agreement between both parties. All three methods however require dispute parties to make inputs so as to arrive on final decision.

4 0
3 years ago
Many of the oil-rich countries in the Middle East are also rich in
xenn [34]

Answer:

D

Explanation:

Middle east countries hold a lot of natural gas supply.

Ex Saudi Arabia hold 300+ Trillion in natural gasses, making it the 5th highest natural gas reserve in the world.

7 0
2 years ago
Explain the 5 Relationships and what Confucius hoped they would accomplish.
jeyben [28]
<span>ruler to ruled, father to son, husband to wife, elder brother to younger brother, friend to friend. 
Hope i help.Brainliest?</span>
4 0
3 years ago
Other questions:
  • In their tv and radio advertisement many cars compaines of the 1950 promoted
    14·1 answer
  • What was the MOST significant outcome of the Siege of Savannah during the Revolutionary War?
    14·1 answer
  • Although psychologists and sociologists study similar subjects and phenomena, what is a significant difference in the types of q
    12·1 answer
  • Martina has a sample of an unknown substance. She measures the substance. Its mass is 13.5 grams, and its volume is 5 cm3. Which
    13·1 answer
  • The __________ is the source of the interpersonal communication the person who originates the communication encounter. Loudest s
    12·1 answer
  • Assume the government significantly increases spending for infrastructure, and taxes and interest rates do not change as a resul
    12·1 answer
  • In psychologist robert rescorla's classical conditioning experiment, one group of rats experienced a tone just before each of 20
    10·1 answer
  • Teenagers often find the behavior of adults to be _________. what is the best adjective to fill in the blank?
    6·2 answers
  • What was life like for migrant workers in the 1920s
    11·1 answer
  • Imagine you are very wealthy and have a large home with many possessions. However, your home is located many miles away from the
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!