Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.22 KB

File metadata and controls

48 lines (31 loc) · 1.22 KB

Console-Finances

Overview

The objective is to develop a program for analyzing the financial records of a company using the given database.

var finances = [
 ["Jan-2010", 867884],
 ["Feb-2010", 984655],
 ["Mar-2010", 322013],
 ["Apr-2010", -69417],
 ["May-2010", 310503],
 ["Jun-2010", 522857],
 ["Jul-2010", 1033096],
 ["Aug-2010", 604885],

 More data........

Instructions

Task: To write JavaScript code that analyzes the records to calculate each of the following

  • The total number of months included in the dataset.

  • The net total amount of Profit/Losses over the entire period.

  • The average of the changes in Profit/Losses over the entire period.

    • Track what the total change in profits are from month to month and then find the average.
    • (Total/Number of months)
  • The greatest increase in profits (date and amount) over the entire period.

  • The greatest decrease in losses (date and amount) over the entire period.

ScreenShot:

Img-1:

index.html screenshot

Img-2:

index.html screenshot

Deployment:

Link: https://kingjessie.github.io/Console-Finances