Skip to content

A web-based calculator developed using Vanilla JavaScript

Notifications You must be signed in to change notification settings

hemanthnhs/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

Details :

This is a web application developed as a part of coursework of CS5610 Web Development. The application consists of 2 pages, one with HTML and CSS knowledge demonstration by having a page about Animal and the attribution.

The second application is a four-function calculator application with multifunction += button and supports negative numbers as well.

Four-function Calculator Design-Decisions and Usage Document :

The application supports decimal point operations and operations on negative numbers.

Not finite numbers like Infinity, NaN are displayed as UNDEFINED in the calculator

Consecutive operations are executed sequential order i.e 1 + 2 * 3 will be (1 + 2) * 3 i.e in the order of inputs entered.

Consecutive operator inputs i.e * followed by / will be overidden by the latest operator entered. (Unless - where its treated as neg)

Design decision for any arithmetic operator except (+=) followed by - (minus) was made to handle as a negative number so to undo, the calculator clear must be used. Where as for += the - (minus) operator represents a subtract operation. To enter a negative number (from scratch operation) after +=, clear option must be used ( Using two - will result a result - (negative number)).

Attributions :

Image of Polar Bear from wikepedia Namespace and Anonymous functions understanding

About

A web-based calculator developed using Vanilla JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published