Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Perform the following steps in the file you created above (lastname_firstname_lab4.py) : Create a program to calculate statics for quarterly sales Specifications: Create a function

Perform the following steps in the file you created above (lastname_firstname_lab4.py):

Create a program to calculate statics for quarterly sales

Specifications:

Create a function to display the "Header/Greeting"

Create a function named "get_quarterly_sales()" to ask the user to input a numeric value for each quarters sales totals. Store the information in a List. The function should return the list

Create a function named "process_sales()" to process the sales data and display information about the sales figures. The function should take a single list as a parameter and then do the necessary calculations to be able to print the "Total, Average, Maximum, and Minimum values" as shown in the sample output below

Create a Main function to call these functions in order. Note you'll need to store the returned value from the get_quarterly_sales() function in order to pass it as a parameter to the process_sales() function.

Sample input / output:

The Quarterly Sales program

Enter sales for Q1: 25000 Enter sales for Q2: 37000 Enter sales for Q3: 52000 Enter sales for Q4: 48000

Total: $162000.0 Average Quarter: $ 40500.0 Lowest Quarter: $ 25000.0 Highest Quarter: $ 52000.0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Securing SQL Server Protecting Your Database From Attackers

Authors: Denny Cherry

1st Edition

1597496251, 978-1597496254

More Books

Students also viewed these Databases questions

Question

2. Identify conflict triggers in yourself and others

Answered: 1 week ago