Question: Write a C language code with the given instructions. Two example executions are given of the code... (YOU CANT USE ARRAYS, FOR and WHILE STATEMENTS)

Write a C language code with the given instructions. Two example executions are given of the code...(YOU CANT USE ARRAYS, FOR and WHILE STATEMENTS)

Write a C language code with the given instructions. Two example executions

are given of the code...(YOU CANT USE ARRAYS, FOR and WHILE STATEMENTS)

Problem: Given the temperature (degrees F) at a point above the surface of the Earth calculate the temperature (degrees C) at the base of each layer of the atmosphere as the object descends to the ground. The rate of change in temperature (degrees C) per kilometer depends on the layer through which the object descends. A summary is provided below that describes the thickness of each layer and its rate of temperature change Layer Troposphere Tropopause Lower Stratosphere 33 Upper Bound (km) 10 20 Temperature (C) Change Rate Per km 7.5 0.0 Upper Stratosphere 48 Stratopause Lower Mesosphere 61 3.8 0.0 2.2 3.5 2.5 0.0 1.9 3.7 Middle Mesosphere70 Upper Mesosphere 82 Mesopause Lower Thermosphere 120 92 Upper Thermosphere 300 Example Execution #1: Enter height of object (km) >15.5 Enter temperature (F) -> 32 Example Execution #1 Explained: The height of the object is 15.5 km which places it in the tropopause. These "pause" layers have no change in temperature. It is only during the 10 km Height Starting Ending Change Initial Data: Tropopause: Troposphere: (km) Temp C Temp C Rate 15.50 10.00 descent through the troposphere that the temperature RAISES from 0.0 C to 75.0 0.0 0.0 75.0 -7.500 C 0.0 +0.000 when it arrives at the surface of the Earth (these numbers are not necessarily realistic) 0.00 Example Execution #2: Enter height of object (km) -> 75 Enter temperature (F) -> -30 Example #2 Explained: Here we start with an altitude that is 5 km above the base of the Upper Mesosphere layer. The temperature increases by 12.5 degrees C as the object descends to the base of the Upper Mesosphere. The temperature continues to increase during the descent through the Middle and Height Starting Ending Change (km) Temp C Temp C Rate 75.00 70.00 Middle Mesosphere61.00 51.00 48.00 Upper Stratosphere 33.00 34.4 Initial Data: Upper Mesosphere: 34.4 -21.9 -2.500 9 9.6 3.500 21.9 9.6 31.6 -2.200 Lower Mesosphere. Temperatures 31.6 31.6 +0.000 decrease as the object descends through 31.6 25.4 +3.800 the Upper and Lower Stratosphere. And 38.4 -38.4 +0.000 38.4 36.6 -7.500 Lower Mesosphere: Stratopause: Lower Stratosphere 20.00-25.4 -38.4 +1.000 the final descent through the Troposphere 10.00 0.00 Tropopause: is an increasing temperature until the surface of the Earth is reached Troposphere: Problem: Given the temperature (degrees F) at a point above the surface of the Earth calculate the temperature (degrees C) at the base of each layer of the atmosphere as the object descends to the ground. The rate of change in temperature (degrees C) per kilometer depends on the layer through which the object descends. A summary is provided below that describes the thickness of each layer and its rate of temperature change Layer Troposphere Tropopause Lower Stratosphere 33 Upper Bound (km) 10 20 Temperature (C) Change Rate Per km 7.5 0.0 Upper Stratosphere 48 Stratopause Lower Mesosphere 61 3.8 0.0 2.2 3.5 2.5 0.0 1.9 3.7 Middle Mesosphere70 Upper Mesosphere 82 Mesopause Lower Thermosphere 120 92 Upper Thermosphere 300 Example Execution #1: Enter height of object (km) >15.5 Enter temperature (F) -> 32 Example Execution #1 Explained: The height of the object is 15.5 km which places it in the tropopause. These "pause" layers have no change in temperature. It is only during the 10 km Height Starting Ending Change Initial Data: Tropopause: Troposphere: (km) Temp C Temp C Rate 15.50 10.00 descent through the troposphere that the temperature RAISES from 0.0 C to 75.0 0.0 0.0 75.0 -7.500 C 0.0 +0.000 when it arrives at the surface of the Earth (these numbers are not necessarily realistic) 0.00 Example Execution #2: Enter height of object (km) -> 75 Enter temperature (F) -> -30 Example #2 Explained: Here we start with an altitude that is 5 km above the base of the Upper Mesosphere layer. The temperature increases by 12.5 degrees C as the object descends to the base of the Upper Mesosphere. The temperature continues to increase during the descent through the Middle and Height Starting Ending Change (km) Temp C Temp C Rate 75.00 70.00 Middle Mesosphere61.00 51.00 48.00 Upper Stratosphere 33.00 34.4 Initial Data: Upper Mesosphere: 34.4 -21.9 -2.500 9 9.6 3.500 21.9 9.6 31.6 -2.200 Lower Mesosphere. Temperatures 31.6 31.6 +0.000 decrease as the object descends through 31.6 25.4 +3.800 the Upper and Lower Stratosphere. And 38.4 -38.4 +0.000 38.4 36.6 -7.500 Lower Mesosphere: Stratopause: Lower Stratosphere 20.00-25.4 -38.4 +1.000 the final descent through the Troposphere 10.00 0.00 Tropopause: is an increasing temperature until the surface of the Earth is reached Troposphere

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!