Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A weather balloon is used to collect data on temperature and pressure at various altitudes in the atmosphere. The balloon rises because the density of

A weather balloon is used to collect data on temperature and pressure at various altitudes in the atmosphere. The balloon rises because the density of the helium in the balloon is lower than the density of the air that surrounds the balloon. As the balloon rises, the air around the balloon becomes less and less dense, and thus the rising of the balloon slows until it reaches a point of equilibrium During the day, the sun warms the helium in the balloon, which causes the helium to expand and become less dense; thus, the balloon rises to a higher altitude. During the night, the helium cools and becomes denser; thus, the balloon lowers to a lower altitude. The following day, the sun heats the helium again and the balloon rises to a new altitude. The change in the weather balloon altitude as a function of time can be approximated with a polynomial equation. Assume that the change in altitude in meters during the first 48 hours following the release of the balloon is represented by the equation: alt(t)=-0.12t^4+12t^3-380t^2+4100+220 where the unit of time t is hour. The corresponding velocity in meters per second of the balloon is represented by the equation v(t)=-0.48t^3+36t^2-760t+4100. Develop a program that requests from the user a range of time for t to calculate the change in altitude and velocity of the weather balloon. Twenty-five values of time/altitude/velocity over this range are displayed in a table. Respect the following guidelines during your development: a) Declare a structure variable in the main function which contains: The start time and end time of the period to calculate altitude and speed values, A computer array for storing time values, A computer array for storing altitude values, A computer array for storing velocity values, The values at the same index of the three arrays give the

image text in transcribedimage text in transcribed

Question 3 (15 marks) A weather balloon is used to collect data on temperature and pressure at various altitudes in the atmosphere. The balloon rises because the density of the helium in the balloon is lower than the density of the air that surrounds the balloon. As the balloon rises, the air around the balloon becomes less and less dense, and thus the rising of the balloon slows until it reaches a point of equilibrium During the day, the sun warms the helium in the balloon, which causes the helium to expand and become less dense; thus, the balloon rises to a higher altitude. During the night, the helium cools and becomes denser; thus, the balloon lowers to a lower altitude. The following day, the sun heats the helium again and the balloon rises to a new altitude. The change in the weather balloon altitude as a function of time can be approximated with a polynomial equation. Assume that the change in altitude in meters during the first 48 hours following the release of the balloon is represented by the equation alt(t) -0.12t4 +12t3-380t2+4100t+220 where the unit of time t is hour. The corresponding velocity in meters per second of the balloon is represented by the equation v(t)--0.48r3 + 36t2-760t +4100 alt(t) v(t) 5000.00 4000.00 3000.c0 2000.00 1000.c0 0.c0 16000.0 8000.00 6000.00 4000.00 2000.00 0.00 0.00 0.00 20.00 30.00 50.00 Develop a program that requests from the user a range of time for t to calculate the change in altitude and velocity of the weather balloon. Twenty-five values of time/altitude/velocity over this range are displayed in a table. Respect the following guidelines during your development a) Declare a structure variable in the main function which contains The start time and end time of the period to calculate altitude and speed values, A computer array for storing time values, A computer array for storing altitude values A computer array for storing velocity values, The values at the same index of the three arrays give the altitude and velocity at the time value. The arrays will contain 25 elements. Use a symbolic constant to represent this value . b) Obtain from the user the following data: The start and end time of the of the period to calculate altitude and speed values Verify that the two time values are between 0.0 and 48.0. Also verify that the start time proceeds the end time. Repeat the request from the user for the times values until they are both valid. Use a separate function (called by main) to get the user data. The function should receive the address of the variable structure declared in main within a pointer parameter to store the two time values . . c) Use a function to calculate all time/altitude/velocity points to fill the three arrays in the structure variable. The function shall also receive the address to the structure variable declared in main within a pointer parameter in order to update the arrays of the structure variable

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

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions

Question

How do books become world of wonder?

Answered: 1 week ago