Question
Create a Python program that uses a while loop and prompts the user for a series of inputs. You should use a sentinel value to
Create a Python program that uses a while loop and prompts the user for a series of inputs. You should use a sentinel value to signal when the loop should terminate. Calculate and display the sum of the user inputs.
Some examples that you might use are the following:
Total number of miles traveled on a road trip.
Total cost of groceries in a month.
Total number of accidents in a year.
You must choose something different from any of the above, however.
Include comments in your code program that describe what the program does. Submit your code as an attachment (.py file) and post a screenshot of executing your program on at least one test case.
Be sure to choose a program different from any of the programs already posted by your classmates.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started