Question: Create a program that allows you to view and edit the sales amounts for each month of the current year. Console Monthly Sales program

Create a program that allows you to view and edit the sales

Create a program that allows you to view and edit the sales amounts for each month of the current year. Console Monthly Sales program COMMAND MENU view - View sales for specified month edit - Edit sales for specified month totals View sales summary for year exit - Exit program Command: view Three-letter Month: jan Sales amount for Jan is 14, 317.00. Command: edit Three-letter Month: jan Sales Amount: 15293 Sales amount for Jan is 15,293.00. Command: totals Yearly total: Monthly average: 67,855.00 5,654.58 Command: view Three-letter Month: july Invalid three-letter month. Command: exit Bye!

Step by Step Solution

3.43 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Constants MONTHLYSALESFILE monthlysalestxt Function to read the sales data from the file and store it in a dictionary def readsalesdata salesdata try ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!