START
DEFINE SUPPORTED_ITEMS as:
- television
- computer
- charger
- games console
- speaker
DISPLAY "Welcome to EcoDispose"
DISPLAY options:
- View Privacy Policy
- Continue
GET user choice
IF user selects Privacy Policy THEN
DISPLAY privacy policy
WAIT for user to continue
END IF
REPEAT
PROMPT user to enter their name
GET name
IF name is empty THEN
DISPLAY "Name cannot be empty. Please try again."
END IF
UNTIL name is not empty
DISPLAY "Thank you, [name]"
DISPLAY "Scan or select e-waste item"
GET item type
IF item is in SUPPORTED_ITEMS THEN
DISPLAY "Item accepted for recycling"
UPDATE recycling impact
ELSE
DISPLAY "Item not supported"
END IF
DISPLAY recycling summary
END
START
DEFINE SUPPORTED_ITEMS as:
DISPLAY "Welcome to EcoDispose"
DISPLAY options:
GET user choice
IF user selects Privacy Policy THEN
DISPLAY privacy policy
WAIT for user to continue
END IF
REPEAT
PROMPT user to enter their name
GET name
IF name is empty THEN
DISPLAY "Name cannot be empty. Please try again."
END IF
UNTIL name is not empty
DISPLAY "Thank you, [name]"
DISPLAY "Scan or select e-waste item"
GET item type
IF item is in SUPPORTED_ITEMS THEN
DISPLAY "Item accepted for recycling"
UPDATE recycling impact
ELSE
DISPLAY "Item not supported"
END IF
DISPLAY recycling summary
END