Python Product declaration: File management, data structure, sorting. To show your cultural side, you have invested some of your millions in different theaters. Each day you will know how many tickets...


Python<br>Product declaration: File management, data<br>structure, sorting.<br>To show your cultural side, you have invested some<br>of your millions in different theaters. Each day you<br>will know how many tickets sold to the festival<br>tonight and you will write a program that processes<br>and presents this information.<br>First, compile a file with the following information<br>for each theater: The name of the theater<br>Total number of seats in the salon<br>Ticket prices<br>There are three different fee classes: adults,<br>pensioners and children. Ticket prices vary from tea<br>to theater. The adult ticket is always the most<br>expensive and the child ticket is cheapest and the<br>prices are always the whole currency.<br>The program should read information from a file and<br>also ask the user about the number of tickets sold in<br>each price range for each theater. F for each theater<br>must be printed the sum of ticket prices and<br>occupancy (as a percentage). The theaters must be<br>sorted in descending order of postponement (the<br>one who has chosen the final destination is thus<br>first).<br>how to set up a python code to make the program<br>work?<br>

Extracted text: Python Product declaration: File management, data structure, sorting. To show your cultural side, you have invested some of your millions in different theaters. Each day you will know how many tickets sold to the festival tonight and you will write a program that processes and presents this information. First, compile a file with the following information for each theater: The name of the theater Total number of seats in the salon Ticket prices There are three different fee classes: adults, pensioners and children. Ticket prices vary from tea to theater. The adult ticket is always the most expensive and the child ticket is cheapest and the prices are always the whole currency. The program should read information from a file and also ask the user about the number of tickets sold in each price range for each theater. F for each theater must be printed the sum of ticket prices and occupancy (as a percentage). The theaters must be sorted in descending order of postponement (the one who has chosen the final destination is thus first). how to set up a python code to make the program work?

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here