Question: Please Python! D-Bug's manager at the movie theater told him to prepare tonight's sign for a double feature. Unfortunately, his manager forgot to mention the
Please Python! D-Bug's manager at the movie theater told him to prepare tonight's sign for a double feature. Unfortunately, his manager forgot to mention the names of the movies. Help D-Bug write a script so that he can finish the job as soon as his manager gets back to him.
The program should take in two titles and print out the titles centered on the billboard with a minimum width of length twenty, followed by the ratio of the title's lengths to two decimal places.
>>> Wargames >>> The Matrix | Wargames | 0.80 | | The Matrix | 1.25 |
0.80 = ratio of the length of title 1 to the length of title 2.
1.25 = ratio of the length of title 2 to the length of title 1.

D-Bug's manager at the movie theater told him to prepare tonight's sign for a double feature. Unfortunately, his manager forgot to mention the names of the movies. Help D-Bug write a script so that he can finish the job as soon as his manager gets back to him. The program should take in two titles and print out the titles centered on the billboard with a minimum width of length twenty, followed by the ratio of the title's lengths to two decimal places. >>> Wargames >>> The Matrix Wargames The Matrix 0.80 1.25 0.80 = ratio of the length of title 1 to the length of title 2. 1.25 = ratio of the length of title 2 to the length of title 1. 366466.2345274.qx3zqy7 LAB ACTIVITY 11.2.1: Movie Marquee 0/4 main.py Load default template... 1 # request input for the two titles 3 4 # hint: pre-calculate the padding 5 6 7 # print the two titles 8
Step by Step Solution
There are 3 Steps involved in it
To solve this problem we need to write a Python script that takes two titles as input and prints them centered on a 20character wide billboard Additionally it calculates and prints the ... View full answer
Get step-by-step solutions from verified subject matter experts
