The calculator game

The calculator game

by 13521Brayden13521

👁 5 ❤️ 0 ⭐ 0 🔄 0
Created: Mar 19, 2024 Last modified: Mar 25, 2024 Shared: Mar 20, 2024

Description

Calculators are extremely useful. When doing equations with four or five digits, it can be difficult, and you might make errors. With a calculator the equation can be solved faster. Another reason why calculators are extremely useful is because they can divide and multiply fractions or decimals. When you eat at a restaurant, you typically have to tip fifteen or twenty percent of the bill. This can be quite challenging, especially when doing it on a napkin or in your head. If you make a mistake, you end up tipping less than twenty percent or more. When reflecting on the reasons why calculators are so useful, I found out that they can be helpful when multiplying or dividing big numbers and with decimals, whether you are multiplying or dividing.

Instructions

When active listening was in class, I was told to make a calculator game. How this project works is that when you click on a number, the number will show up on the screen. Click an operation and choose addition, subtraction, multiplication, or division. Click the equal sign for the answer. This project was coded mainly on broadcast blocks and variable blocks. Some of the challenges I faced when coding this project were that whenever I clicked the flag, the buttons would be in a different position than what I coded them to be. It took me about ten minutes to realize that there were multiple go-to blocks under the flag for some reason. One way I handled the potential issue of division by zero was by adding an additional block of code that said if the operation was division and the second number was zero, the answer would say undefined. When making this project, I decided to be creative, and instead of putting the equal sign on the bottom right corner, I decided to put the equal sign on top of the division sign. One area where improvement can be made is redesigning the calculator. My project's calculator is very bland. It has little to no color, and the buttons on the calculator each have a different shape. 

Project Details

Visibility
Visible
Comments
Enabled