Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 2. Write a program that does the following:(Using Python 3..) Ask the user to enter a stores sales for each day of the week

Exercise 2. Write a program that does the following:(Using Python 3..)

  1. Ask the user to enter a stores sales for each day of the week this week.
  2. The amounts should be stored in a list.
  3. Use a loop to calculate the total sales for the week and display the result.
  4. Output the average sales of the week, shown with only 2 decimal places
  5. Output the minimum and maximum sale values
  6. Create a new list that contains the percentage of sales (2 decimal places) that each day contributed to the total week's sales

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

Describe the parts of a URL.

Answered: 1 week ago

Question

Explain the various methods of job evaluation

Answered: 1 week ago

Question

Differentiate Personnel Management and Human Resource Management

Answered: 1 week ago

Question

Describe the functions of Human resource management

Answered: 1 week ago