Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Python language Instructions: Jane's Stuff Store sells a variable number of items to every customer. Recently Jane's customers have been requesting a printout showing

Use Python language

image text in transcribed

Instructions: Jane's Stuff Store sells a variable number of items to every customer. Recently Jane's customers have been requesting a printout showing the average cost of each item purchased and the total cost of all items purchased. Create a program that asks the user how many items they wish to purchase. The program should then use a loop to prompt the user for the price of each item and to calculate the total cost of all items. The program should calculate the average cost of each item purchased. The program should print out the total cost for all items as well as the average cost of each item purchased. Enter your name, the lab number, and the current date into a set of comments at the top of the code. Upload the program source code to the class web site Sample Output: Jane's Stuff Store How many items would you like purchase? 3 Enter the price of item 1: 1.50 Enter the price of item 2: 3.45 Enter the price of item 3: 2.00 The total cost of your meal is $6.95 The average cost of each item is $2.32

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

=+ Are they breakable for any reason?

Answered: 1 week ago