Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a) Download from Blackboard the input file named TicketSales.csv and place in into the same directory your source code is in. It is a CSV
a) Download from Blackboard the input file named TicketSales.csv and place in into the same directory your source code is in. It is a CSV file with each record representing 1 Broadway Show with four (4) fields: ShowTitle, OrchestraTickets, Orchestralncome, MezzanineTickets, and Mezzaninelncome. The ShowTitle field represents a string; the OchestraTickets and MezzanineTickets represents an integer number of tickets sold; and Orchestralncome and Mezzaninelncome represents a float dollar amount of value of tickets sold. b) Loop / Read the records in the file creating a dictionary for each record reading all the fields. Convert the Tickets and Income fields to Integers and Real Numbers. c) Total the OrchestaTickets, Orchestralncome, MezzanineTickets and Mezzanine fields for all Records/shows. d) Output each Show's Information e) Output the Total Information
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started