Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Sum of numbers 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 the series. After all the positive...

1 answer below »
Sum of numbers
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 the series. After all the positive numbers have been entered, the program should display their sum.
Please follow the exact examples for psudocode and flow chart for the same psudocode
Answered Same Day Feb 11, 2021

Solution

Mythili answered on Feb 13 2021
151 Votes

Declare a variable to hold each number
initialize it with 0.
Declare Integer total=0
Declare integer usernumber
Give input and store it in usernumber variable
usernumber = Please enter the first number or a negative number to quit
continue the loop until usernumber is greater than -1
while usernumber > -1
set total = total +...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here