Pseudocode for Nested If Selection Structure

 

 

Get Student Name

Get Grade Point Average from User

Get Hours Completed from User

 

If Grade Point Average is greater than 3.5 then

          If Hours Completed is greater than or equal to 15 then

                   Display Student Name “ is Honor Student”

          End If

End If

 

*********************

 

Get Age from voter

If Age is greater than 17 then

          Get Registration Status from voter

          If voter is registered then

                   Display “You may Vote”

          Else

                   Display “You must register to vote”

          End If

Else

          Display “You are too young to vote.”

End If