Project
Roulette

Calculator

You might also find it worth your time to experiment with the calculator app on your mobile device to better understand basic functionality and edge…

BeginnerWeb appTool4–11hAI-buildable 5/5no setupworth shipping

Calculators are not only one of the most useful tools available, but they are also a great way to understand UI and event processing in an application. In this problem you will create a calculator that supports basic arithmetic calculations on integers. The styling is up to you so use your imagination and get creative! You might also find it worth your time to experiment with the calculator app on your mobile device to better understand basic functionality and edge cases. ### Constraints - You may not use the eval() function to execute calculations

UI
Logic
Useful

Hosting · Free forever

Deploys free on GitHub Pages, Cloudflare Pages or Vercel Hobby.

Deploy it and share a link.

Core features · 10

  • User can see a display showing the current number entered or the
  • User can see an entry pad containing buttons for the digits 0-9,
  • User can enter numbers as sequences up to 8 digits long by clicking on
  • User can click on an operation button to display the result of that
  • the result of the preceding operation and the last number entered OR
  • the last two numbers entered OR
  • the last number entered
  • User can click the 'C' button to clear the last number or the last
  • User can click the 'AC' button to clear all internal work areas and
  • User can see 'ERR' displayed if any operation would exceed the

Once it works

  • User can click a '+/-' button to change the sign of the number that is
  • User can see a decimal point ('.') button on the entry pad to that

Suggested stack

reacttypescripttailwinddate-fns

Track it