This is a supplemental task description for HW02, where we practice basic in-browser JS, HTML, and CSS.
Here's an old 4-function calculator:
Relevent features:
The calculator can be modeled as a state machine. Pressing any button does something meaningful at any time, but number buttons do two different things depending on the state:
Pressing a button should call a JavaScript function that updates the internal state and the display as appropriate.