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

How do you get the complexity of an algorithm? What is the relation b/w the time & space complexities of an algorithm? Justify your answer with an example.

I need help programming an arduino uno to scan an ean-8 student barcode and display their name and id on computer. This is a capstone project.

Question 1- In engineering applications it is often necessary to fit a straight line to a set of N points with known coordinates (xi, yi), where i indexes the points (N in total).

Abstraction hierarchy of mechanisms Given  the light-sensitive the motor and resistor,  we could  find  several  ways  of interconnecting them, using bits of ceramic and metal

Write a Prolog predicate  has_duplicates(L)  that is true if list  L  contains duplicated elements (that is at least 2 copies of an element). For instance: ?- has_duplicates([a,

Can you provide help in solving error problems, with my matlab project?

Real Distinct Eigenvalues Under this case we'll have the real, distinct eigenvalues l 1 ≠l 2 ≠l 3 a and their related eigenvectors, ?h 1 , ?h 2 and  ?h 3   are guarantee

Expertsmind brings you unique solution in java assignments Packages A Java packages is a process for planning Java sessions into namespaces just like the segments of Modu

Difference between java and j2ee programming In the basic form, the phrase java is placed as a selection terminology. On the other hand, the phrase J2EE is placed as a renderin