In this question we shall present the algorithm in pseudocode, whose structure is now summarized:
1) Inputs.
2) Algorithms.
3) Outputs.
Please notice that While-cycles consider the requirement of using the algorithm as many times as user wants.
Name: Area-or-Circunference
CHAR - <em>decide</em>
REAL - <em>radius</em>, <em>circumference</em>, <em>area</em>
Say <em>"Do you want to calculate? [Y] - Yes/[N] - No"</em>;
Write <em>decide</em>;
While (<em>decide</em> != 'Y' and <em>decide</em> != 'y' and <em>decide</em> != 'N' and <em>decide</em> != 'n'):
Say <em>"Invalid option. Do you want to calculate? [Y] - Yes/[N] - No"</em>;
Write <em>decide</em>;
end-While
While (<em>decide</em> = 'Y' or <em>decide</em> = 'y'):
Say <em>"Please indicate a radius"</em>;
While (<em>radius</em> < 0):
Say <em>"Radius must be equal or greater than 0. Please indicate a </em>
<em> radius"</em>;
Write <em>radius</em>;
end-While
If (<em>radius</em> < 1):
<em>circumference</em> = 2*3.14*<em>radius</em>;
Say <em>"The circumference has a value of %circumference length units"</em>;
Else:
<em>circumference</em> = 2*3.14*<em>radius</em>;
<em>area</em> = 3.14*<em>radius</em>*<em>radius</em>;
Say <em>"The circumference has a value of %circumference length units </em>
<em> and the area has a value of %area square units"</em>;
end-If
Say <em>"Do you want to calculate? [Y] - Yes/[N] - No"</em>;
Write <em>decide</em>;
While (<em>decide</em> != 'Y' and <em>decide</em> != 'y' and <em>decide</em> != 'N' and <em>decide</em> !=
'n'):
Say <em>"Invalid option. Do you want to calculate? [Y] - Yes/[N] - No"</em>;
Write <em>decide</em>;
end-While
end-While
If (<em>decide</em> = 'N' or <em>decide</em> = 'n'):
Say "Good luck";
end-If
We kindly invite to see this question on algorithms: brainly.com/question/17780739