Problem Solving with C++ (10th Edition)
Problem Solving with C++ (10th Edition)
10th Edition
ISBN: 9780134448282
Author: Walter Savitch, Kenrick Mock
Publisher: PEARSON
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 5, Problem 5PP

In cold weather, meteorologists report an index called the windchill factor, that 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. Windchill may be approximated by the formula:

  W=13.12+0.6215* t–11.37 *v0.16+0.3965 * t *v0.016

  where

  v = wind speed in m/sec

  t = temperature in degrees Celsius: t <= 10

  W = windchill index (in degrees Celsius)

Write a function that returns the windchill index. Your code should ensure that the restriction on the temperature is not violated. Look up some weather reports in back issues of a newspaper in your university library and compare the windchill index you calculate with the result reported in the newspaper.

Blurred answer
Students have asked these similar questions
BMI is a measure of body condition and it is related to a person's weight and height. In the metric system, for weight given in Kilograms (Kg) and height given in centimeters (cm), the BMI value is given by: $BMI=10000*weight/(height^2)$. The person's condition is given by the table below:\n", "\n", "| BMI | Condition|\n", "|-----|----------|\n", "| <18.5| Underweight|\n", "|>=18.5 and <25| Normal |\n", "|>=25 and <30| Overweight |\n", "|>= 30 | Obese|\n", "\n", Write a program that asks for a person's height in cm and weight in Kg and print's the person's condition.
A nutritionist who works for a fitness club helps members by evaluating their diets. As part of her evaluation, she asks members for the number of fat grams and carbohydrate grams that they consume in a day. Then, she calculates the number of calories that result from the fat using the following formula:                       Calories from fat = Fat grams × 9Next, she calculates the number of calories that result from the carbohydrates using the following formula:                       Calories from carbs = Carbs grams × 4Create an application that will make these calculations. In the application, you should have the following methods:• FatCalories–This method should accept a number of fat grams as an argument and return the number of calories from that amount of fat.• CarbCalories–This method should accept a number of carbohydrate grams as an argument and return the number of calories from that amount of carbohydrates.
1/ A Cuii number is the one whose digit sum is 17. Find out KthCuii number. K is an integer given as input and 1 <= K <= 1000. Sample Input  Sample output 1 89 10 359 2 98 3 179 Here in the first case digit sum of 89 is 8 + 9 = 17. The first 5 cuii numbers are: 89, 98, 179, 188 and 197.     2/ You are given EEE and Programming marks of N students. Determine the highest total marks among them. Fist line contains an integer value N. Each of the next N lines contain two values X and Y (X is the EEE mark, Y is the Programming marks).  Sample Input  Sample output 5 70 80 100 90 95 95 100 80 60 50 190

Chapter 5 Solutions

Problem Solving with C++ (10th Edition)

Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Python Tutorial #10; Math Functions in Python; Author: Art of Engineer;https://www.youtube.com/watch?v=OviXsGf4qmY;License: Standard YouTube License, CC-BY