Design a program with a loop that asks the user to enter a series of positive numbers

computer science

Description

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.

Instruction Files

Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.