Design a program with a loop that asks the user to enter a


Question:

Required: Visual Basic Pseudocode

Sum and average

Design a program with a loop that asks the user to enter a series of positive numbers. The user should enter a negative number to signal the end of series. Once a user enters a negative number, your program should display sum of all positive numbers and their average.

Example output:

The bold parts are what your programs do. Others are what user entered.

Enter a positive number. Enter negative number to quit.

57

Enter a positive number. Enter negative number to quit.

10

Enter a positive number. Enter negative number to quit.

8

Enter a positive number. Enter negative number to quit.

-3

The sum of numbers is 75.

The average is 25.

You should submit both flowchart and pseudocode. For this assignment, you have to use MS Visio. Please zip all files before submission. In a MS Word file, please copy and paste the following statement and put your initials to the bottom of the statement.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Design a program with a loop that asks the user to enter a
Reference No:- TGS02203454

Now Priced at $20 (50% Discount)

Recommended (92%)

Rated (4.4/5)