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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 16:30, rileysndr1782
Monica and her team have implemented is successfully in an organization. what factor leads to successful is implementation? good between different departments in an organization leads to successful is implementation.
Answers: 1
image
Computers and Technology, 24.06.2019 14:00, Abrahamolve
When creating a field in a table, you must set the to determine what type of data the field can store. field property data type field type data property
Answers: 1
image
Computers and Technology, 24.06.2019 20:30, anonymous1813
⭐️⭐️⭐️ what network is larger in size? man or wan? you ⭐️⭐️⭐️
Answers: 2
image
Computers and Technology, 25.06.2019 02:00, Aaraar
Feedback is one of the basic elements games have in common true false
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 in other subjects:

Konu
Mathematics, 25.02.2020 18:32