mardi 4 octobre 2016

Pseudo code if statement

Your friend is car shopping and wants either a white car with white interior or a black car that has any interior other than white. Fill in the blank below with an expression you can use to check that a car meets your friend’s criteria.

PROMPT for carColor

READ carColor

PROMPT for interiorColor

READ interiorColor

IF ("insert expression here") THEN PRINT " THIS CAR MEETS THE DESIRED INTERIOR"

ENDIF

I believe that interiorColor goes into the spot of insert expression here. Is that correct?

Aucun commentaire:

Enregistrer un commentaire