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, 23.06.2019 13:00
Which one of the following voltages should never be measured directly with a vom? a. 1200 v b. 500 v c. 800 v d. 100v
Answers: 2
question
Computers and Technology, 23.06.2019 21:20
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Aconsumer would pay an extra they used the rent to own program to buy the computer, rather than using cash. for all of the items, is the cheapest option over the life of the contract. the most expensive overall option is to use purchase the item.
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Fast answer i need for apex ! smartphones should be banned from the classroom in public schools so that students cannot cheat on test so easily? which is an example of a counter argument to the thesis above? a.the classroom is a place for learning not for making phone calls b. smartphones are useful learning tools in the modern classroom c.banning smartphones will not students pay attention to teachers any better d. banning smartphones would decreased incidents of theft
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, 31.07.2019 13:00
Questions on the website: 13722367