PDA

View Full Version : Pseudocode for 'if the grade point average is between 2.0 and 3.5 inclusive


mroberts50
Sep 23, 2010, 08:10 AM

karilynngodd
Oct 17, 2010, 01:05 PM
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.