Add data validation to the program segment of Exercise 35 to check that the user enters only

Question:

Add data validation to the program segment of Exercise 35 to check that the user enters only positive integer values.


Data from Exercise 35

Write pseudocode that will average a list of numbers input by the user. Use the following variables:

● Number As Integer

● Sum As Integer

● Average As Float

● Count As Integer

Also:

● Use a While loop to enter the numbers.

● Use a sentinel to test when the user wants to stop entering numbers.

● Assume the user enters valid data.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Prelude To Programming

ISBN: 9780133741636

6th Edition

Authors: Stewart Venit, Elizabeth Drake

Question Posted: