Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Finance The Role Of Data Analytics In Manda Due Diligence

Authors: Ps Publishing

1st Edition

B0CR6SKTQG, 979-8873324675

More Books

Students also viewed these Databases questions