Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do all the questions. (Convert feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the

Please do all the questions.image text in transcribed

(Convert feet into meters) Write a program that reads a number in feet, converts it to meters, and displays the result. One foot is 0.30 meter. Here is a sample run: (Convert pounds into kilograms) Write a program that converts pounds into kilograms. The program prompts the user to enter a number in pounds, converts it to kilograms, and displays the result. One pound is 0.454 kilograms. Here is a sample run: (Sum the digits in an integer) Write a program that reads an integer between 6 and 1000 and adds all the digits in the integer. For example, if an integer is 932, the sum of all its digits is 14. Here is a sample run: (Physics:acceleration) Average acceleration is defined as the change of velocity divided by the time taken to make the change, as shown in the following formula: a = v_0 - v_1/t Write a program that prompts the user to enter the starting velocity v_0 in meters/second, the ending velocity v_1 in meters/second, and the time span tin seconds, and displays the average acceleration. Here is a sample run: (Science:wind-chill temperature) How cold is it outside? The temperature alone is not enough to provide the answer. Other factors including wind speed, relative humidity, and sunshine play important roles in determining coldness outside. In 2001, the National Weather Service (NWS) implemented the new wind-chill temperature to measure the coldness using temperature and wind speed. The formula is t_wc = 35.74 + 0.6215t_s - 35.75v^0. 16 + 0.4275t_s v^0.16 where t_s is the outside temperature measured in degrees Fahrenheit and v is the speed measured in miles per hour. t_wc is the wind-chi temperature. The formula cannot be used for wind speeds below 2 mph or temperatures below -58 degree F or above 41 degree F. Write a program that prompts the user to enter a temperature between -58 degree F and 41 degree F and a wind speed greater than or equal to 2 and displays the wind-chill temperature. Use Math. pow(a, b). to a compute v^0.16. Here is a sample run

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Knowledge Discovery In Databases

Authors: Gregory Piatetsky-Shapiro, William Frawley

1st Edition

0262660709, 978-0262660709

More Books

Students also viewed these Databases questions