Here is some code that I just came up with :
Code:
Algorithm_Test
String Exposure
Output "Please enter an exposure time"
Input Exposure
Output "Please enter an aperture value"
aperture array={"f1.2","f1.4","f1.8","f2.0","f2.8","f4.0","f5.0","f8.0","f11.0","f16.0","f22.0","f32.0","f2","f4","f5","f8","f11","f22","f32"}
string guess
input guess
Integer i
For (i=0;i<19;i++)
{
compare strings
If guess=aperture
then
{
output "This aperture is on the list of possible values !"
output " The values you have entered are"
output "Aperture value is",aperture,"Exposure time is",exposure
}
else
{
output " You have entered an invalid aperture "
End Algorithm_Test
}
Is this valid pseudocode ?Please comment , I have no idea if I'm doing this right