See below
At right is the flow chart, hand-sketched to emphasize what you would actually do in designing a program. (Making a pretty flowchart with flowcharting software is what you would do if you must present your design to an audience.) Details have been left out.
The initialization asks the user for the values of base
and scale
.
It also asks for the first value for raw
.
Notice that the user is asked for successive values for raw
at the bottom of the loop.
Could clever logic be used so that the user is asked for raw
at only one place in the code?