Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help code in python undefined Jul Dec May Apr Nov Oct Mar Jan Feb Sep Aug Jun 9762 2497 2429 3463 88 6735 1073

please help code in python

image text in transcribedimage text in transcribedundefined

Jul Dec May Apr Nov Oct Mar Jan Feb Sep Aug Jun 9762 2497 2429 3463 88 6735 1073 14317 4176 2437 15578 4324 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! Specifications Use monthly_sales.txt that consists of rows that contain three-letter abbreviations for the month and the monthly sales. The program should read the file and store the sales data for each month in a dictionary with the month abbreviation as the key for each item. Whenever the sales data is edited, the program should write the changed data to the text file. Jul Dec May Apr Nov Oct Mar Jan Feb Sep Aug Jun 9762 2497 2429 3463 88 6735 1073 14317 4176 2437 15578 4324 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! Specifications Use monthly_sales.txt that consists of rows that contain three-letter abbreviations for the month and the monthly sales. The program should read the file and store the sales data for each month in a dictionary with the month abbreviation as the key for each item. Whenever the sales data is edited, the program should write the changed data to the text file

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

Applied International Finance

Authors: Thomas J O'Brien

1st Edition

1606497340, 9781606497340

More Books

Students also viewed these Finance questions