Blank and Comment Blocks
A group of problems that introduce you to blank blocks and comment blocks. These blocks allow you to quickly type a line of code and make notes in your code.Intro to Blank and Comment Blocks
Sometimes you might use a blank block when you already know what code you wish to use or you want to write a comment talking about your code. In this problem, you will drop each block from the tray into the program and run it. Then determine if the blank and comment blocks do anything when the program is run.
Write Comments
Place the comment block from the tray into the editor above the two blocks of code. Write a comment that describes what the code does.
Blank Blocks and Common Errors
The program below was writen by another programmer who made an error when they used a blank block and typed the output command. Run the program. Then read the error in the output window. Using the error message fix the error and run the program again to see if it works.
If you get stuck, select the check button to learn about the common error.
Use Blank Blocks to Write Code
Put the blank block above the two blocks of code and write an output command that outputs the message I wrote the code to output this text. Remember the output command uses the word output followed by two double quotes. Inside the two double quotes are the words to output.