90.1k views
5 votes
Write a Flowgorithm program that utilizes nested loops to find the smallest and largest integer of a group of numbers and then repeats the process for another group of numbers until the user decides to stop (See the expected output at the end to get a better understanding of what the program should do.)

The outside loop keeps the program running until the user decides to exit.
The inside loop calculates the smallest and largest of a series of numbers entered by the user:
It continually asks the user to input a positive or negative number, updating if necessary the values for the smallest and largest variables.
The inside loop repeats until the user enters a 0.
The outside loop outputs the largest and smallest values entered and asks the user if the process should be repeated.
The outside loop exits when the user answers "No" (or anything that is not "Yes".)

User Dmedvinsky
by
8.4k points

1 Answer

5 votes

Final answer:

This question involves writing a Flowgorithm program with nested loops to determine the smallest and largest integers in various user-provided sets, repeating the process based on user input.

Step-by-step explanation:

The question asks for a Flowgorithm program that continually updates the smallest and largest integers entered by the user. The program consists of nested loops: the inner loop prompts the user for integers, updating the smallest and largest values accordingly, and terminates when the user enters 0.

The outer loop displays the smallest and largest values, then inquires if the user wants to repeat with a new set of numbers, exiting if the user responds with anything other than 'Yes'. This task is a computational logic problem intended to teach students how to implement nested loops and handle user input in a program flowchart.

User Erwin Moller
by
8.3k points