# Concentration checker for table salt
SET solubility TO 36 # grams per 100 mL at room temperature
ASK "Grams of salt?" and STORE in mass
ASK "Millilitres of water?" and STORE in volume
SET concentration TO mass / volume * 100 # grams per 100 mL
DISPLAY "Concentration: ", concentration, " g/100 mL"
IF concentration < solubility THEN
DISPLAY "Unsaturated: more salt can dissolve."
ELSE IF concentration = solubility THEN
DISPLAY "Saturated: no more salt can dissolve."
ELSE
DISPLAY "Saturated, with extra salt left at the bottom."
END IF
A program plan (pseudocode). It turns any amounts into g/100 mL, then uses an IF... ELSE IF... ELSE decision to classify the solution. You could build it in Scratch with "ask" and "if/else" blocks.