Purchase Solution

Average high, Average low, Highest and Lowest temperatures

Not what you're looking for?

Ask Custom Question

Write a C++ program that uses a two-dimensional array to store the highest and lowest temperature for the first five months of the year. The program should output the average high, average low, and the highest and lowest temperatures for the year.

The program must consist of the following functions:
* Function indexHighTemp: This function returns the index of the highest high temperature in the array.
* Function indexLowTemp: This function returns the index of the lowest low temperature in the array.

Please refer to the attachment for how a sample run would look like.

Attachments
Purchase this Solution

Solution Summary

Code is self-explanatory and modestly commented. It works with negative temperature values as well.

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

C# variables and classes

This quiz contains questions about C# classes and variables.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.