Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Modify the sentinel . py program to use a priming and a modification read ( see the Application: Processing Sentinel Values section ) . The
Modify the sentinel py program to use a priming and a modification read see the "Application: Processing Sentinel Values"
section The program should achieve the same result of computing an average salary and use a sentinel value of
# Initialize variables to maintain the running total and count.
total
count
# Process data until the sentinel is entered.
# Your code goes here
while salary :
# Your code goes here
# Compute and print the average salary
if count :
average total count
printAverage salary is average
else :
printNo data was entered."
View your last submission
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