Question: In your own IDE: write the solution of the programming problem below. (IDLE Python) Submit screenshots of your code, and the sample run. A new
In your own IDE: write the solution of the programming problem below. (IDLE Python)
Submit screenshots of your code, and the sample run.
A new movie house has started its operation. To improve their services they plan to adopt a Python program that will speed up the computation of the total cost of tickets the customer purchased. Write a program using a user-defined function that will ask the user to enter the name of a movie the number of adult tickets, and print the data to the screen. The adult ticket cost P150.00 while the child ticket cost P100.00. Program flow might look like the following:
Enter the name of the movie: Only You Enter the number of adult tickets: 2 Enter the number of child tickets: 2
------------------------------------------- Thank you for purchasing tickets for the movie titled: Only You
2 adult tickets: P 300.00 2 Child tickets: P200.00 Your total ticket price is P500.00

A new movie house has started its operation. To improve their services, they plan to adopt a program that will speed up the computation of the total cost of tickets the customer purchased. Write a program using a user-defined function that will ask the user to enter the name of a movie, the number of adult tickets, and the number of child tickets. After the input is completed, calculate the total cost of all the tickets and print the data to the screen. The adult ticket cost P150.00 while the child ticket cost P 100.00. Program flow might look like the following: Enter the name of the movie: Only You Enter the number of adult tickets: 2 Enters the number of child tickets: 2 ** ****** MOVIE TICKET ***** *** Thank you for purchasing tickets for the movie titled Only You *** *** 2 adult tickets: P 300.00 2 child tickets: P 200.00 *** *** Your total ticket price isP500.00 *** *** *** ***
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
