Skip to content

Instantly share code, notes, and snippets.

ThomasCBrannan

Block or report user

Report or block ThomasCBrannan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Love_O_Meter._V3.cpp
/*
* 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:
View Love_O_Meter._V2cpp
/*
* 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:
View Love_O_Meter.cpp
/*
* 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:
View blink_atmega328p.c
View gist:e6ead761a7a64b9ed86df71ffafac66d
// 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':[]};
You can’t perform that action at this time.