Build an Advanced Calculator!
Now it's time to put everything you've learned about arithmetic operators, variables, conditional statements, and logical operators together. Your challenge is to build an advanced calculator in PictoBlox!
What Your Calculator Should Do
- Ask the user to enter two numbers.
- Ask the user which operation they want to perform: Addition, Subtraction, Multiplication, or Division.
- Perform the selected operation on the two numbers.
- Display the result using the sprite.
- Handle the special case where the user tries to divide by zero — display an error message instead of crashing!
Dividing by zero is undefined in mathematics and will cause errors in programs. Use an If () Then Else block to check if the second number is 0 before dividing!
Hints
- Use the 'Ask () and wait' block to get inputs from the user.
- Save the user's chosen operation in a variable called Operation.
- Use If () Then Else blocks to check which operation was selected and perform it.
- Use an AND or relational operator to detect division by zero.
- Use the join () () block in the Operators palette to combine text and numbers in your result message.
Variables to Create
Save your file with the name Advanced Calculator.

.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)
.webp&w=3840&q=75)