Vous êtes sur la page 1sur 2

CS10-1L -Computer Programming and Fundamentals Laboratory

Machine Problem # 5

Date

Name

Section

File Name: MP5_Surname.cpp

Problem Statement:
In cold weather, meteorologists report an index called the wind chill factor, which takes
into account the wind speed and the temperature. The index provides a measure of the chilling
effect of wind at a given air temperature. Wind chill may be approximated by the following
formula:

W 13.12 0.6215t 11.37v 0.16 0.3965tv 0.016


Where:

v = wind speed in m/sec


t = temperature in degree Celsius: t<=10
W = Wind chill index in Celsius
Write a function that returns the wind chill index and the display of results will be done in
main(). Your code should ensure that the restriction on the temperature is not violated.
Laboratory Exercise Score Sheet

Criteria

Score

Proper program indention.

Program contains the prescribed comments

Intelligent naming of variables

Program is running without errors

15

Program generated the required output

20

Proper Function declaration and definition

25

Apply Returning a Single Value Function

20

Saved to prescribed folder and correct filename

5
Total

Engr. Cheryl Mari M. Isip


Instructor

100

_______________
Date

Vous aimerez peut-être aussi