Temperature Calculation system, Programming Languages

Detailed Description:

• The program will take temperature readings as input from user for specified number of consecutive days.
• Program will store these temperature values into an array.
• Then it will pass this array to three different functions.
• One function will return highest temperature, one will return lowest temperature and third one will return average temperature.
• All these functions will be called inside main() function where these temperature results will be displayed to the user.

Sample Output:

Enter the number of consecutive days to read their temperature : 5

Enter temperature for day 1: 50

Enter temperature for day 2: 80

Enter temperature for day 3: 30

Enter temperature for day 4: 92

Enter temperature for day 5: 47

The average temperature is 59.80
The highest temperature is 92.00
The lowest temperature is 30.00



NOTE:
The array containing temperature values must be passed to three different functions to return average, highest and lowest temperatures. Marks will be deducted if assignment is solved with some other technique.
Posted Date: 4/26/2012 8:14:07 AM | Location : United States







Related Discussions:- Temperature Calculation system, Assignment Help, Ask Question on Temperature Calculation system, Get Answer, Expert's Help, Temperature Calculation system Discussions

Write discussion on Temperature Calculation system
Your posts are moderated
Related Questions

Use recursion to de ne a function position which has as input an integer, a character and a string and returns the result of inserting the character in the string at the position s

about how to create the program in c

Scenario A campsite provides cabins for travellers to stay in overnight. A 'cabin' is a small wooden hut, containing bunk beds, table and chairs, a heater, and a small cookin

1. CMP and SUB CMP is used for comparing 2 registers by subtraction them from one another, but answer is not saved, whereas SUB subtracts 2 registers and saves the answer.

Design an application that opens and analyses word files. Requirements: Create an application that analyses text documents. It should open a text file, read each word into an ap

i have 4 variables in my linkage section of PIC 9(3) ..while submitting i m passing parameter value i.e. numeic to them but its taking space for 2 varaible and for two its taking c

The classical connect-4 game is played on a 67 board, it can in fact be played in any nrRowsnrCols board. In your implementation, the user will specify the number of rows nrRows an


Short Arrays: Array = randi(10,1,randi(6,1,1)+4)-5 This command will generate an array which you should be able to evaluate by hand (and also have your code evaluate for te