try writing pseudo code that describes how your device uses input data to perform the action that you want.

GUYS CAN YOU GAVE SOME EXAMPLES OF pseudo code PLEASE...

Respuesta :

// Input example:
var userInput = input("Action: ");
if(userInput == "run") {
// Run code
} else if(userInput == "stop") {
// Run code
} else {
// Run error code
}

// More-like-what-you-want example:
if(user.clickApp("Brainly")) {
// Open Brainly
} else if (user.clickApp("App")) {
// Open App
} else {
// Other if, else if, else statements
}