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.

Erweiterung auswählen
Die Kulisse wechseln
Für jeden Teil eurer Präsentation die Kulisse verändern
Die Innovation umgestalten
Das Kostüm eurer Figur individuell gestalten, sodass es eurer Vorstellung besser entspricht
Ein Feuerwerk programmieren (Herausforderung)
Eine Feuerwerk-Figur zuerst zu eurem Lager und dann zu eurem Programm hinzufügen und entscheiden, wann der Code dieser Figur ausgeführt werden soll
Die Idee schützen
Das Publikum bitten zuzustimmen, keine der Ideen in eurer Geschichte an andere Personen weiterzugeben
Die Lautstärke einstellen
Eure Präsentation durch ein Lied ergänzen und die Lautstärke je nachdem, welcher Teil der Geschichte gerade erzählt wird, regeln
Interaktive Elemente einbauen
Das Ende eurer Präsentation interaktiv gestalten, indem ihr dem Publikum eine Frage stellt und darauf reagiert
arrow_backward Zurück
Weiter arrow_forward
Anweisungen
1. Wählt eine der Erweiterungen aus und programmiert sie!