Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Other Programming (https://www.askmehelpdesk.com/forumdisplay.php?f=437)
-   -   Pseudocode for 'if the grade point average is between 2.0 and 3.5 inclusive (https://www.askmehelpdesk.com/showthread.php?t=510130)

  • Sep 23, 2010, 08:10 AM
    mroberts50
    Pseudocode for 'if the grade point average is between 2.0 and 3.5 inclusive
  • Oct 17, 2010, 01:05 PM
    karilynngodd
    well that would be an if-then-else statement so

    //Declare variables
    Declare real gpa

    //Get gpa
    Display 'Enter your gpa'
    input gpa

    If gpa >= 2.0 and gpa <= 3.5 Then
    Display ''Your gpa is between 2.0 and 3.5''
    else
    Display "whatever the output is supposed to be"
    end If



    That's the best I can do without knowing what the outputs are supposed to be.

  • All times are GMT -7. The time now is 08:11 PM.