You need to write one Python program per question.
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written →Instructions:
- You need to write one Python program per question. Each program should be written in IDLE or be IDLE compatible.
- Name the program after the title of the problem.
- The first three lines of each program should be a comment to include your name, date and name of the program.
- .
1.Stadium Seating
There are three seating categories at a stadium. Class A seats cost $20, Class B seats cost $15, and Class C seats cost $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.
2.Kinetic Energy
In physics, an object that is in motion is said to have kinetic energy. The following formula can be used to determine a moving object’s kinetic energy:
KE=12mv2
The variables in the formula are as follows: KE is the kinetic energy, m is the object’s mass in kilograms, and v is the object’s velocity in meters per second.
Write a function named kinetic energy that accepts an object’s mass (in kilograms) and velocity (in meters per second) as arguments. The function should return the amount of kinetic energy that the object has. Write a program that asks the user to enter values for mass and velocity, then calls the kinetic energy function to get the object’s kinetic energy.
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds