question archive Can someone how is expert at Python programming please help!Both program should use main function
Subject:Computer SciencePrice: Bought3
Can someone how is expert at Python programming please help!Both program should use main function.
1.In this program you will create sales program for a small store. It will track the date and the amount of sales. It will be capable of inserting, deleting, displaying, and plotting the data which is entered.
Begin by creating a sales class which allows you to store the sales amount in dollars and the date of the sale. Create the required accessors, mutators, and methods to store and retrieve these values. Next, create interface with a text based menu that allows the use to add, view, delete, and plot the sales figures. You can store the sales figures in any of the abstract data types we have studied in this course. Do not use a Python list. You menu might look like the following:
-------------------------------------------------------
Menu
-------------------------------------------------------
1) Enter sales data
2) View sales data
3) Delete sales data
4) Plot sales data
5) Exit
-------------------------------------------------------
Enter your choice:
This menu represents the minimum your program should do. Feel free to make your menu more sophisticated, add more classes, or word things differently. Do not use a GUI for this assignment.
Tips for full credit
2.In this program you are going to implement higher order functions. Create function which is capable of tracking how long code executes (the You Tube video in this lesson will be very helpful).
Next create two identical lists of random numbers. Make sure the lists are long. I would recommend you write small function using the random number generator to quickly generate several thousand numbers. Then implement any two sorting algorithms. For example, the selection sort and the bubble sort. You are free to choose any two algorithms.
Finally, sort the lists with each function and use your timer function to show which algorithm is more efficient.
Tips for full credit