For this discussion write an algorithm for a nested selectio
For this discussion, write an algorithm for a nested selection and post it. In your response to a classmate, point out any errors that might be in their algorithm. If there are no errors in the algorithm, discuss what radio buttons you think should be included in the interface and why.
Solution
We will assume first one problem statement:
\"Write an algorithm to find out largest amoung three different numbers\".
Algorithm:
Our algorithm could be as follows-
Step 1: Start
Step 2: Declare three variables x,y,z
Step 3: Read values of variables x,y,z
Step 4: If x > y
If x > z then
Print \" x is largest Number\".
Else
Print \"z is largest number\".
Else
If Y > Z
Print \"y is largest number\".
Else
Print \"z is largest number\".
Step 5: Stop

