Question: Please write the code in C Program only. Explainations with steps are greatly aprreciated. Task 2: Weather Balloons A weather balloon is a balloon that


Task 2: Weather Balloons A weather balloon is a balloon that carries certain instruments high in the air to record or send information back to be used for research and weather monitoring. The balloon of a weather balloon provides the lift for the apparatus while the recording instrument hangs below. This hanging portion of the weather balloon is called the radiosonde as it transmits via radio transmission. Weather balloons are usually used to gather temperature and pressure data at various altitudes in the atmosphere. The balloon which are filled with helium will rise because of the density of the helium is less than the density of the surrounding air. During daylight, sunlight warms the helium trapped inside the balloon, causing the helium to expand and become less dense, thus the balloon will rise higher. During night time, the helium becomes cooler and hence more dense, resulting in a decrease in the altitude. Over time, this process generates a set of altitude measurements that can be approximated with a polynomial equation. Assume the expression below represents the altitude or height in meters during the first 48 hours following the launch of a weather balloon: alt(t) = -0.12t* + 12t? - 38062 +4100t + 220 Where the unit of t are hours. The polynomial model for the velocity in meters per hour is represented below: v(t) = -0.48t3 + 36t2 - 760t +4100 Figure 1 and Figure 2 depicts the line graph of the altitude and velocity of the balloon for a period of 48 hours. Hallo Videa os Velocity, melec 10 15 > 50 Figure Bloc AB 15 Alidemen 15 15 12 Figure 2 a) Write a program that will print a table of the altitude and the velocity for this weather balloon using units of meters and meters per hour respectively. Let the user enter the start time, the increment in time between lines of the table, and the ending time, where all the time values must be less than 48 hours. Use the program to generate a table showing the weather balloon information every 10 minutes over a 2-hour period, starting 4 hours after the balloon was launched. Your program should also check that the final time is greater than the initial time. If it is not, ask the user to reenter time again b) Modify the program in a) so that it also prints the peak altitude and its corresponding time. c) The preceding equations are accurate only for the time from 0 to 48 hours, so modify the program generated in a) so that it prints a message to the user that specifies beyond the upper bound of 48 hours. Also, check the user input to make sure that it stays within the proper bounds. If there are errors, ask the user to reenter the time again. d) Modify the program in a) so that it stores the time, altitude, and velocity information in a data file named balloon 1.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
