Create a running sum. A user will enter umbers that willbe added to the sum and when a negative number is encountered adding numbers and write out the final result. You're going to create a flow chart and pseudo code
 👍
 👎
 👁
 ℹ️
 🚩
1 answer

sum=0
loop
read num
exit loop if num < 0
sum += num
end loop
print sum 👍
 👎
 ℹ️
 🚩
answered by oobleck
Answer this Question
Related Questions

math
After rolling a sum of 4, 5, 6, 8, 9, or 10, a player must roll the same sum again before rolling a sum of 7. Which sum 4, 5, 6, 8, 9, or 10, has the highest probability of occurring again?
 asked by Andrea

math
Find two positive numbers whose sum is 50 such that the sum of their squares is minimum?
 asked by Anonymous

Mathematics
The sum of two numbers is 21. 3/4 of one of the numbers added to 2/3 of the other number gives the sum of 15. Find the two numbers
 asked by Oreoluwa

C programming
Question: Write a program that reads integers from the keyboard until the user enters the sentinel value 999. The program should then print the minimum integer read, the maximum integer read and the average of all the integers. (Excluding the sentinel
 asked by E

math
What value could be added to 2/15 to make the sum greater than 1/2. A. 1/15 B. 8/30 C. 5/15 D. 8/15 2. Which set of mixed numbers had a difference less than 1? A. 1 2/9,1 1/9 B. 3 4/7,2 1/7 C. 2 4/5,1 1/3 D. 2 7/9,1 1/3 1. A 2. A Thanks
 asked by Skylar

Mathematics
Find the number such that when 3/4 of it is added 3 1/2 the sum is the same way as when 2/3 of it is subtracted from 6 1/2.
 asked by Precious

computer
Write an algorithm for a program that accepts a set of numbers and finds the smallest among them and computes the sum of the numbers accepted. The program stops when the user enters number 999. Convert the algorithm into flowchart
 asked by Anonymous

intro to computer programming
Write a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. Your program should use a loop to ask the user how
 asked by Anonymous

Ic
Write an application that prompts the user for two integers and then prompts the user to enter an option as follows: 1 to add the two integers, 2 to subtract the second integer from the first, 3 to multiply the integers, and 4 to divide the first integer
 asked by Souad

Math
Which statement about the sum of two additive inverses is true? Select all that apply. A. The sum is 1. B. The sum is zero. C. The sum must be a positive number. D. The sum must be a negative number. E. The addends are the same number with opposite signs.
 asked by that one dude

Help!! Geometric progression
Question(1):A G.P has a common ratio of 2 find the value of 'n' for which the sum 2n terms is 33 times the sum of n?? Question(2):in A G.P the product of the 2nd and the 4thterm is double ,the 5th term and the sum of the first 4 term is 80.find the G.P??
 asked by Collins

Geometry Check please
Is the following definition of complementary angles reversible? If yes, write it as a true biconditional Complementary angles are two angles whose sum measures to 90 degrees  The statement is not reversible  Yes, if angles are complementary, then their
 asked by sammy

programming
Design a flowchart or pseudocode for a program that accepts three numbers from a user and displays a message if the sum of any two numbers equals the third.
 asked by joy

Programming
Draw a flowchart or write pseudo code to represent the logic of a program that allows the user to enter values for the current year and the userâ€™s birth year. The program outputs the age of the user this year. Preferably a pseudocode
 asked by Siya

Pseudocode
Write an algorithm and pseudocode that represents a program that allows a user to enter two numbers. Your program should calculate the sum, difference (both directions), product, and quotient (both directions) of the two numbers.
 asked by Mare

Programming
Write a pseudocode to represent the logic of a program that allows a user to enter an hourly pay rate and hours worked. The program outputs the user's gross pay
 asked by Sunshine

Science
Write a pseudocode which will accept two integers from the user and calculate the sum and product. Then display the answer to the user.
 asked by Anonymous

math
Luanne estimates the sum of 39 + 15 is about 40 + 15, or 55. Jacob estimates the sum of 39 + 15 is 40 = 20 or 60 which one is closer to the exact sum?
 asked by jen

Maths
"The sum of an infinite geometric sequence is 27. The second term of the sequence is 6. Find the possible values of r." I made a formula 'u1=6/r' using the info. given above, and I was going to insert it into the formula for the sum of an infinite
 asked by Carla

programming
1. Write a structured algorithm that prompts the user to input two numbers. The algorithm should calculate and print the sum & product of the two numbers [21/2]
 asked by alethia benney
Still need help?
You can ask a new question or browse existing questions.