Skip to content

Please update your browser

Your browser version is not supported by this site. CS First may not work properly. Learn more

Transcript

When people and organizations share information in the professional world, they use non-disclosure agreements to protect their ideas. While sharing is important in computer science, sharing an idea before you develop or use it might lead someone else to use it before you do.

In this add-on, you’ll ask the audience to agree to not share any of the ideas in your story with other people. This is not a legally binding agreement, but the code you’ll use to create it is similar to the code that a company might use on its website.

To start, select the sprite narrating your story. Use some "say for 2 seconds blocks" to write a disclaimer. In this example, the sprite says, “The ideas and opinions expressed in this project are owned by csf123. Sharing the ideas in this project is strictly prohibited.”

Now that you have a disclaimer, ask the user to agree not to share your idea. Click sensing and drag out an ask block. Add your question text, like, “Do you agree not to share this innovation with other people?” Click this block stack to test it.

Great, the sprite says the disclaimer, asks the question, and a prompt pops up where users can type their answer. If the answer is yes, then the program should run normally, if they type anything else, the program should stop.

Drag out an if/else block. As the condition, put an equals operator, the answer variable from sensing, and type “yes” as the other value.

This now reads, if the answer equals yes, then...

If the answer is yes, the program should run normally. Add this code below the green flag.

Place the "broadcast" and "wait" blocks that are already in your project in the “then” portion of the block. Click the flag to test this.

Enter “yes” as the answer.

The program works, great! Next, add a "say" block to the "else."

If people don’t say yes, the program can respond with something like “Ok, thanks for your honesty!”

Test this now with something like “no.”

The program says the message, then does not show the innovation! Great. Now it’s your turn to protect your innovation: Add a disclaimer using "say for 2 seconds" blocks.

Ask the user to keep your ideas confidential with an “ask” block Decide what to do based on the users’ answer with an "if/else" block, an "equals" operator, and an "answer" block.

Choisir une extension
Changement de scène
Change le décor de chaque partie de ton argumentaire.
Innovation restylisée
Personnalise le costume de ton lutin pour qu'il reflète mieux ton idée d'origine.
Feux d'artifice
Place un lutin Feu d'artifice dans ton sac à dos, ajoute-le dans ton programme, et décide à quel moment exécuter son code.
Protéger ton idée
Demande à ton public d'accepter de ne communiquer tes idées à personne.
Ajouter de l'interactivité
Donne une fin interactive à ton argumentaire en posant une question à ton public et en répondant en conséquence.
arrow_backward Retour
Suivant arrow_forward
Instructions
1. Choisis une extension et crée !