Answered step by step
Verified Expert Solution
Question
1 Approved Answer
NEED ASAP Please MAKE SURE TO SUBMIT YOUR CODE TO BOTH WEBCAT AND PASTE YOUR SOLUTION HERE IN CANVAS FOR FULL CREDIT! Average Write a
NEED ASAP Please
MAKE SURE TO SUBMIT YOUR CODE TO BOTH WEBCAT AND PASTE YOUR SOLUTION HERE IN CANVAS FOR FULL CREDIT! Average Write a program called Average that allows a user to enter multiple values and it will calculate the average of the values entered. The sentinel value is 1; any other value should be calculated as part of the average. It is possible that the user enters only the sentinel value, in which case the average should be 0.0. Averages must be correct to the 2nd digit after the decimal Sample Run (user input underlined) Enter a value: 20 Enter a value 1 Enter a value 3 Enter a value 15 Enter a value: 1 18.75 Sample Run (user input underlined) Enter a value 2 Enter a value: 20 Enter a value 2 Enter a value:1 20.0 Sample Run (user input underlined) Enter a value: 1 0.0
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