First off I apologize for not elaborating and clarifying the question first, so I will do that right now.
I am currently trying to complete a a lab exercise (topic is on earthquakes) that requires UML class diagram and pseudocode.
one of the method required is named the determineclassification()
so for the pseudocode it is required that you have an if then else statement for the method above.
example
magnitude
0-3
4-6
classification
little
medium
determineclassification()
If magnitude 0 > and magnitude < 3
then
classification = little
elseif magnitude 4 > and magnitude < 6
then
classification = medium
and vice versa
I was wondering if the method that I am using right is the correct way to create a if-then-else statement.