Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Make a python program that asks the number of items or uses a sentinel loop to end the loop when the user enters -1.

Make a python program that asks the number of items or uses a sentinel loop to end the loop when the user 

Make a python program that asks the number of items or uses a sentinel loop to end the loop when the user enters -1. It should look up the price for the item inside the loop and add the price for that item into the total. It should show the total at the end. Here are the items sold by your store. (100 po Description Pencil Item Number 1 2 3 4 3 1 1 3 Pen Example of a program run with a counter-controlled loop "How many things are you buying" Paper Eraser [print of the table with a message to pick a number 1-4] 3 "The total bill is 1.60" [print of the table with a message to pick a number 1-4] 3 Item Price .05 [print of the table with a message to pick a number 1-4] 4 .99 1.50 -1 .55 Example of a program run with a sentinel loop [print of the table with a message to pick a number 1-4 or -1 to end] [print of the table with a message to pick a number 1-4 or -1 to end] "The total bill is 3.55" [print of the table with a message to pick a number 1-4 or -1 to end] [print of the table with a message to pick a number 1-4 or -1 to end] Turn in the python program on the grade link as you turn it in for grading.

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_2

Step: 3

blur-text-image_3

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

Auditing A Practical Approach

Authors: Robyn Moroney, Fiona Campbell, Jane Hamilton

4th Edition

0730382648, 978-0730382645

More Books

Students explore these related Computer Network questions