Skip to content

Instantly share code, notes, and snippets.

View ThomasCBrannan's full-sized avatar

ThomasCBrannan

View GitHub Profile
// res is an empty object that holds an array designers: []
// For each designer object in the inventory...
// Add an object to the array in res with name: designer.name
// For each shoe in designer[shoes]...
// Add shoe price to an array of shoe prices
// Get the average of the shoe prices
// Add averagePrice: averageOfShoePrices to the designer's object in res
// return res
function getAverageDesignerPrices(inventory) {
var res = {'designers':[]};
/*
* GccApplication2.cpp
*
* Created: 7/15/2017 11:32:42 PM
* Author : Thomas Brannan
*
* This is starter kit project 3, the 'Love-O-Meter' (temperature sensor).
* ... Note that this version uses an EXTERNAL temperature sensor.
*
* References:
/*
* GccApplication2.cpp
*
* Created: 7/15/2017 11:32:42 PM
* Author : Thomas Brannan
*
* This is starter kit project 3, the 'Love-O-Meter' (temperature sensor).
* ... Note that this version uses an EXTERNAL temperature sensor.
*
* References:
/*
* GccApplication2.cpp
*
* Created: 7/15/2017 11:32:42 PM
* Author : Thomas Brannan
*
* This is starter kit project 3, the 'Love-O-Meter' (temperature sensor).
* ... Note that this version uses an EXTERNAL temperature sensor.
*
* References: