Output
Problems related to outputting info, in the form of text, to a user.Starting with output
Most programs use one or more forms of user output. In this problem, you will use the text based output block to display the text Hello when your program is run. Move the block from the tray to the editor and run the code.
Change Text in a Block
Move the output block from the tray to the block editor, change the text to Hello World, and run the program.
Position a Block
Build on the starter program that displays a short introduction of a character you make up. The introduction to your character should display their name and one fact about them.
Output Order
Practice putting output blocks in order. Move each block so the program displays the correct answer after each question.
Select a Block
Programmers often need to learn to select the code they will use to make a program work correctly. In this activity, select the code block that will display the question and answer in the output window.
Introducing Concatenation
Read through this code and practice putting the blocks in order. After you run the code it should produce the same output as a problem you have already completed. This time concatenation is used to make the same output.
Concatenate Text for Output
Using the starter blocks in the tray build a program that displays a character name and age in the following example format.
Name: Sasha
Age: 17
You will need to change the text in both of the provided blocks. Use the '+' to concatenate or add two lines of text together.
Change Text in a Block
Using the output block in the tray build a program that displays the character's name, age, birthdate, and about me paragraph. Be sure to follow the example format below.
Name: Sasha
Age: 17
Birthdate: 01/18/2014
About Me: I'm a middle schooler who loves to learn and try new things. I enjoy reading, playing sports, and working on creative projects. Hanging out with my friends is always fun, and I'm always curious about new hobbies. Even though I'm still figuring things out, I'm excited for what the future holds!