Week2iLab2 - /* * Programmer: [Burak Akkas] * * Date:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 /****************************************************************** * Programmer: [Burak Akkas] * * Date: [07/13/11] * * Course: COMP 220 * * Assignment: Two-dimensional arrays * * File name: BRK.cpp [put your initials instead of XXX] * * Description: this program analyzes the data from temperature sensors for * each of the seven computers in a room * * Assumptions: all data is type integer * * Input: two-dimensional array * * Output: screen - Displays results of calculations in table format. * ********************************************************************/ #include <iostream> const int NMBROFCLMNS = 8 const int NMBROFROWS = 24 void processArray(int TR[][NMBROFCLMNS]) double avgerage(int [][NMBROFCLMNS], int, int) int high(int TR[][NMBROFCLMNS], int, int) int low(int [][NMBROFCLMNS], int, int) void tempDifference(int [][NMBROFCLMNS], int , int ) int main ( ){ int tempReadings [NMBROFROWS][NMBROFCLMNS] = { {96, 94, 95, 100, 115, 97, 92, 65}, {100, 92, 91, 110, 115, 99, 98, 65}, {120, 91, 99, 113, 115, 95, 99, 66}, {97, 99, 100, 114, 115, 100, 100, 66}, {99, 100, 111, 115, 115, 104, 104, 68},
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 8

Week2iLab2 - /* * Programmer: [Burak Akkas] * * Date:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online