vuZs

Virtual University: Study Resource Bank

You are here: Home Assignment CS201: Introduction to Programming CS201 Introduction to Programming Solution ( due Date 02.05.2012)
Like this Page? Press  
 

Assignments and GDBs

CS201 Introduction to Programming Solution ( due Date 02.05.2012)

CS201 Introduction to Programming Solution ( due Date 02.05.2012)

Problem Statement:    Temperature Calculation system    

Write a program that displays average, highest and lowest temperatures. 

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
CS201 Solution 
CS201 solution 

Attachments:
Download this file (CS201_vuzs.txt)CS201 solution file download[ ]0.9 Kb

Add comment


Security code
Refresh

You are here: Home Assignment CS201: Introduction to Programming CS201 Introduction to Programming Solution ( due Date 02.05.2012)