Assignment 1
Simple Calculator App
Due Friday April 17 before 11:30pm

Overview

For this assignment you will develop a simple app for performing a calculation task of your choice.

Conversion

First, decide on your conversion/calculation task. Consider the following possibilities:

  • Measurement conversion
  • Currency conversion
  • Windchill calculation
  • Number of days in year given the year

Many other possibilities exist. Be creative!

Requirements

Your app should have the following:

  • Input text fields, an event-handling function, and display of output
  • At least three different input controls (e.g. text field, button, menu)
  • Handling for at least two different events (e.g. a reset event is almost always a possibility)
  • JavaScript code in a separate file; no JS in HTML file
  • Appropriate rounding of figures
  • Variables declared with var
  • Your name and app description commented in the html and js files.
  • Consistent indentation for html and javascript.

Use of jQuery for this assignment is encouraged but not required (yet).

For additional challenge, consider the following:

  • Robust handling of incorrect input
  • Alternate input/output settings, chosen with a menu
  • Elegant presentation using CSS
  • Effective presentation for mobile web app
  • Output that is automatically updated as input values change (no button needed)

Submission

Submit your files in a zipped folder to D2L. If you can post your files online, submit the URL in the comment.

Grading

This assignment is worth 10 points. Apps that address all of the requirements will receive 10 points.