- #1
Norah
- 4
- 0
PLZZZZZ HELP ME
I am crying I have a test
but, I don't know how to solve this problems
PLEASSSSSSSSE HELP
Problem#1:
Write user-defined function to take a depth (in kilometers) inside the Earth as input data; compute and print the temperature at this depth in degree Celsius and degree Fahrenheit. Write main program to call this function.
Relevant Formulas
Celsius=10(depth)+20.
Fahrenheit=1.8 (Celsius)+32.
Problem#2:
The Air Force has asked you to write a program to label supersonic aircraft as military or civilian. Your program is to be given the plane's observed speed in km/h and its estimated length in meters.
For planes traveling in excess of 1100 km/h, you will label those longer than 52 meters "civilian" and shorter aircraft as "military". For planes traveling at slower speeds, you will issue an "aircraft type unknown" message.
Problem#3:
Consider the following list of monthly rainfall in a city in millimeters.
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
11.5 10.6 9.8 3.7 8.5 14.0 18.5 22.4 27.6 12.5 12.0 13.8
Use an array with above data. It is desired to determine the month in which maximum and minimum rainfall occurred. Also find the average monthly rainfall and its standard deviation. Instead of actual names you can just print the number of month ranging from 1-12. No user input is required.
R is the average rainfall and ri are monthly rainfalls.
Problem#4:
Twenty-five numbers are entered from the keyboard into an 1-D array. Write a C++ program to find out how many of them are positive, how many are negative, how many are even and how many odd.
Problem#5:
Write a complete C++program that takes the length and width of a rectangular yard and the length and width of a rectangular house situated in the yard. Your program should calculate and display the time required to cut the grass at the rate of two squire feet a second.
I am crying I have a test
but, I don't know how to solve this problems
PLEASSSSSSSSE HELP
Problem#1:
Write user-defined function to take a depth (in kilometers) inside the Earth as input data; compute and print the temperature at this depth in degree Celsius and degree Fahrenheit. Write main program to call this function.
Relevant Formulas
Celsius=10(depth)+20.
Fahrenheit=1.8 (Celsius)+32.
Problem#2:
The Air Force has asked you to write a program to label supersonic aircraft as military or civilian. Your program is to be given the plane's observed speed in km/h and its estimated length in meters.
For planes traveling in excess of 1100 km/h, you will label those longer than 52 meters "civilian" and shorter aircraft as "military". For planes traveling at slower speeds, you will issue an "aircraft type unknown" message.
Problem#3:
Consider the following list of monthly rainfall in a city in millimeters.
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
11.5 10.6 9.8 3.7 8.5 14.0 18.5 22.4 27.6 12.5 12.0 13.8
Use an array with above data. It is desired to determine the month in which maximum and minimum rainfall occurred. Also find the average monthly rainfall and its standard deviation. Instead of actual names you can just print the number of month ranging from 1-12. No user input is required.
R is the average rainfall and ri are monthly rainfalls.
Problem#4:
Twenty-five numbers are entered from the keyboard into an 1-D array. Write a C++ program to find out how many of them are positive, how many are negative, how many are even and how many odd.
Problem#5:
Write a complete C++program that takes the length and width of a rectangular yard and the length and width of a rectangular house situated in the yard. Your program should calculate and display the time required to cut the grass at the rate of two squire feet a second.
Last edited: