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
valkas [14]
4 years ago
10

Write a program that asks how many tickets for each class of seats were sold, then displays the amount of income generated from

ticket sales. There are three seating categories at the stadium. Class A seats costs $20, Class B seats cost $15, and Class C seats cost $10. Console Output:
Computers and Technology
1 answer:
ValentinkaMS [17]4 years ago
5 0

Answer:

# prompt the user to enter number of ticket for class A

classAticket = int(input("Please enter number of ticket for class A"))

# prompt the user to enter number of ticket for class B

classBticket = int(input("Please enter number of ticket for class B"))

# prompt the user to enter number of ticket for class C

classCticket = int(input("Please enter number of ticket for class C"))

# the total amount for ticket is calculated

totalAmount = (classAticket * 20) + (classBticket * 15) + (classCticket * 10)

# the total amount is printed

print("The total amount for ticket is $", totalAmount, sep="")

Explanation:

The program is written in Python and well commented.

You might be interested in
CPT (Current Procedural Terminology) codes consist of 3-4 numbers representing a unique service. True False
xz_007 [3.2K]
This is in fact false to my knowledge
4 0
4 years ago
What are the information ethics associated with IP
Naily [24]

Answer:

The IP stands for intellectual property. And the information ethics related to the IP are the transaction privacy, piracy and the privacy for the ease and giveaways, investigation, namelessness. The trade details must be kept private, and not disclosed to anybody, and the piracy is never allowed. Also, the privacy of all sorts must be ensured for ease and giveaways, surveillance, and confidentiality.

Explanation:

Please check the answer section.

3 0
4 years ago
No PFP gang<br> lollolololololol
Lorico [155]
Yeah lol i don’t have one either
3 0
3 years ago
Read 2 more answers
Who coined the term web log for an online journal
astra-53 [7]
Jorn Barger did this
6 0
4 years ago
Disk based recording systems are always (A) digital (B) analog (C) Both digital and analog
Allushta [10]

Answer:Disk based recording systems are always Digital.

6 0
3 years ago
Other questions:
  • In tableData the column variable of the first column should be RowerNames, the second RowingEvent, the third RowerWeight and the
    6·1 answer
  • When you use the Filter feature, what appears in each column label
    11·1 answer
  • Give a big-O estimate for the number of operations,
    5·1 answer
  • What are the advantages of using an external style sheet?
    9·1 answer
  • Which of the following operation is not performed by a mouse 1) left click , middle click , right click, double click​
    15·2 answers
  • Imagine Frankie has a computer with a full hard drive. She needs to create and save a new document, so she deletes a bunch of ol
    8·1 answer
  • Use the drop-down menus to match the description to the correct audio-editing technique or term. deleting unwanted sounds increa
    14·2 answers
  • How do hand tools,Farm implements and farm equipment differ from one another
    6·1 answer
  • Write a program that can perform three different activities:
    8·1 answer
  • Convert the binary number 100101 to decimal. Show your solution
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!