subject

Create a program in Python that will solve the case written below. Do not forget to include comments and variable declarations. A friend of yours opened a cupcake shop a year ago. She wants you to help her analyze her sales by month by creating a program. This program will allow her to enter 12 months of sales and store those values in an array. The program will determine the average sales, the total of all sales, which month had the highest sale and which month had the lowest sale.
When writing this program, use the following guidelines:
Create 6 functions: main, LoadList, DetermineTotal, DetermineAverage, FindHighest and FindLowest
For the LoadList function, make sure you return the loaded list back to main.
For the DetermineTotal function, pass the list you created in LoadList in to this function. Additionally use a loop to calculate the total. Points will be deducted if you use Python’s sum function. Make sure to return the total back to main.
For the DetermineAverage function, pass the total you created in DetermineTotal in to this function. Return the average back to main.
For the FindHighest function, pass the list you created in LoadList in to this function. Using a loop, determine the highest monthly sales and return it back to main. Points will be deducted if you do not use a loop and rather use Python’s max function.
For the FindLowest function, pass the list you created in LoadList in to this function. Using a loop, determine the lowest monthly sales and return it back to main. Points will be deducted if you do not use a loop and rather use Python’s max function.
For main, call all functions. For those functions that will be value returning make sure you assign those values to variables in main. Print the total sales, the average, the highest and lowest value. You can write whatever prompt for these print statements you feel appropriate.
Examine the code written below. This program when running correctly will generate a random number between 1 and 100 and then ask the user to guess it. The user will have 7 chances to guess the number. With each guess the program will give the user hints. The user can play the game multiple times. When the user guesses correctly the program will print out "You Win!". If the user guesses incorrectly the program will display "You Lose!".
Copy and paste the code into either IDLE or VS Code. Identify the five errors within this file by inserting comments in your code. After you have identified the bugs and fixed the code, upload it here to this question.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Howard is designing a chair swing ride. the swing ropes are 5 meters long, and in full swing they tilt in an angle of 29° outside chairs to be 2.75 m above the ground in full swing.
Answers: 1
question
Computers and Technology, 22.06.2019 15:20
This os integrated the processing power of windows nt with the easy-to-use gui of windows 98. windows 2000 windows 3.11 windows for workgroups windowa millennium edition
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
You know the right answer?
Create a program in Python that will solve the case written below. Do not forget to include comments...
Questions
question
Mathematics, 22.09.2019 20:50
Questions on the website: 13722360