This is what I came up with in pseudo , I'm not sure if exit is correct to use to break out of the loop .
Code:
While Looping=1 // While Loop, Used to loop the menu system
{ Input Choice // The Choice variable will be used to select from one of the following menu options
If Choice='?'
Then
{
Output " This is the help menu
Enter ? for help , q to quit at the main menu .
This program will calculate the exposure value for the entered :
Aperture , ISO and shutter speed . Press <Enter key> to continue,"
Looping<--1
exit
}
Else if Choice=’1’
Then
{
Output “Please enter your name”
Input Name
exit
}
Else if Choice='2'
Then
{
output name," Please enter the ISO value "
Input ISO
For (i=0;len(ISO_VALID);i++)
If ISO==ISO_VALID[i]); // Do strcmp() in C
Then
{
Output "You have entered an allowed value"
Looping<--1
exit
}
}
Else
{
Output "You have entered an invalid ISO value"
Looping<--1
exit
}
Else if Choice='4'
Then
{
Output "Please enter an aperture value"
Input guess
Looping<--1
exit
}
Else if Choice='5'
Then
{
Looping<--0
}
}
DoWhile