Skip to content

EcoDispose Program Flowchart – Assessment 4 #13

@hasanat24kamal-dotcom

Description

@hasanat24kamal-dotcom

START

DEFINE SUPPORTED_ITEMS as:

  • television
  • computer
  • charger
  • games console
  • speaker

DISPLAY "Welcome to EcoDispose"

DISPLAY options:

  1. View Privacy Policy
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions