Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in Flowgorithm that does the following: Ask the user to enter a number greater than zero. Use a loop to calculate the

Write a program in Flowgorithm that does the following: Ask the user to enter a number greater than zero. Use a loop to calculate the sum of the integers from 1 to the number, e.g. for the input of 4 the sum would be 10, 1+2+3+4. Out put the sum and then end the program Next, . Instead of just calculating one sum and ending, the program will now repeatedly prompt the user to enter another number and output the appropriate sum UNTIL the user enters a number that isn't greater than zero. If the user enters a number that isn't greater than zero, don't calculate or display a sum and then the program ends. Complete the program with the addition of keeping a running total to sum of all the sums that are calculated. Output this sum of sums only at the end of the program. So if the user input was 4, 6, 2, 0 the sum of those sums would be 34, i.e. 10+21+3 I have the psuedocode and have made a flowchart but it is not working out for me.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions