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 20:10
Assume that minutes is an int variable whose value is 0 or positive. write an expression whose value is "undercooked" or "soft-boiled" or "medium-boiled" or "hard-boiled" or "overcooked" based on the value of minutes. in particular: if the value of minutes is less than 2 the expression's value is "undercooked"; 2-4 would be a "soft-boiled", 5-7 would be "medium-boiled", 8-11 would be "hard-boiled" and 12 or more would be a "overcooked".
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
Kirk found a local community college with a two-year program and he is comparing the cost with that of an out-of-state two-year school. what is the expected total cost for one year at the local community college if kirk lives at home? what is the expected total cost for one year at the out-of-state school if kirk lives on campus?
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
The footer area of a web page generally houses which website feature? terms of use web page content business name or title menu headings
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Create a file called favorite_foods, and list your favorite foods, entering five or six or more. press enter after each favorite food so it appears on its own line (make certain you also press enter after the final food item). after the file is created, add two more foods you like that are not on the list (press enter after the final food item). view the list of foods to make certain the two items you added appear at the end of the list
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, 29.01.2021 17:20
question
Social Studies, 29.01.2021 17:20
Questions on the website: 13722359