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 19:30
Once the data center routes to the destination server that hosts the website, what's the next step in the internet process? user’s browser renders html code from destination server into web page request goes through router/model and isp request routed to nameserver and datacenter
Answers: 2
question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
question
Computers and Technology, 24.06.2019 04:10
Write a program that reads a set of floating-point values. ask the user to enter the values, then print • the average of the values. • the smallest of the values. • the largest of the values. • the range, that is the difference between the smallest and largest. of course, you may only prompt for the values once.
Answers: 3
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, 10.02.2021 19:20
question
Mathematics, 10.02.2021 19:20
question
Mathematics, 10.02.2021 19:20
Questions on the website: 13722367