Giter Site home page Giter Site logo

w1d4--jscalcadv-dom-'s Introduction

Calc-It extended (JavaScript)

Continue working on the JavaScript Advanced Calculator we started building in class. Add the following features...

Trip Calculator:

This feature asks the user for four inputs:

  • Distance – how far will you drive?
  • MPG – what is the fuel efficiency of the car?
  • $PG – how much does gas cost per gallon?
  • Speed – how fast will you drive?

The output is a string: “Your trip will take 3.5 hours and cost $255.33.”

For every 1 MPH over 60 MPH, reduce the the MPG by 2 MPG (i.e. a car that normally gets 30 mpg would only get 28 mpg if its speed were 61 mph. Yes this gets silly at high speed where mpg goes to zero or gets negative.)

BMI Calculator:

Calculate the BMI when given the height and weight - the user should be able to choose between the imperial and the metric system

http://en.wikipedia.org/wiki/Body_mass_index

Mortgage Calculator:

Calculate the monthly payment when given the other variables as input. you need principal, yearly interest rate and the number of payments http://www.wikihow.com/Calculate-Mortgage-Payments

Bonus features

If you have time:

  • make sure all displayed numbers are rounded to 2 decimal places at most

w1d4--jscalcadv-dom-'s People

Contributors

citygent avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.