Weather balloons are used to gather temperature

Assignment Help C/C++ Programming
Reference no: EM13853359

Weather balloons are used to gather temperature and pressure data at various altitudes in the atmosphere.  The balloon rises because the density of the helium in the balloon is less than the density of the surrounding air outside the balloon.  As the balloon rises, the surrounding air becomes less dense, and thus the balloon's ascent slows until it reaches a point of equilibrium.  During the day, sunlight warms the helium trapped inside the balloon, which causes the helium to expand and become less dense and the balloon to rise higher. During the night, however, the helium in the balloon cools and becomes denser, causing the balloon to descend to a lower altitude.  Over time, this process generates a set of altitude measurements that can be approximated with a polynomial equation.

Equation for altitude (meters)

 Altitude =   -0.12t4 + 12t3   -   380t2 + 4100t + 220

________________________________________________

Equation for velocity (meters/hour)

Velocity =   -0.48t3 + 36t- 760t + 4100

Print a table of the altitude and velocity for this weather balloon using units of meters and meters per second.   Let the user enter the start time, increment in time between lines of the table, and ending, time.The range of time cannot exceed 48 hours (hrs must be validated).   In addition to printing the table, print the peak altitude and its corresponding time.

Sample Output:

Enter initial value for table (hrs)0

Enter increment between lines (hrs)1

Enter final value for table  (hrs)5

 Weather Balloon Information

Time     Height    Velocity

  0.00    220.00      1.14

  1.00   3951.88      0.94

  2.00   6994.08      0.76

  3.00   9414.28      0.59

  4.00  11277.28      0.45

  5.00  12645.00      0.32

Maximum balloon height was 12645.00 meters and it occurred at 5.00 hours

Reference no: EM13853359

Questions Cloud

Development session about teams with the managers : Your training and development session about teams with the managers went very well, so well that the participants expressed a desire to have some of the information that you discussed to be available in writing so they can reference it, as needed.
Creates an enumerated data type year : Implement a C++ program that creates an enumerated data type Year that consists of the twelve months from January to December. Read from input the number of visitors to Olympic Park for each month and then calculate the total number of visitors for a..
Recognizing and evaluating stages of art : Recognizing and Evaluating Stages of Art-Select which stage of art development best characterizes each picture
What technology is and how it relates to organizational : Identify what technology is and how it relates to organizational effectiveness.
Weather balloons are used to gather temperature : Weather balloons are used to gather temperature and pressure data at various altitudes in the atmosphere.  The balloon rises because the density of the helium in the balloon is less than the density of the surrounding air outside the balloon.  As the..
A temperature control system consists of four thermostats : A temperature control system consists of four thermostats controlling three heating units. The thermostat contacts are set to close at 50°, 60°, 70°, and 80°F, respectively. The PLC ladder logic program is to be designed so that at a temperature belo..
Find research-based evidence related to a nursing problem : Conduct a systematic search of relevant databases to find research-based evidence related to a nursing problem
What is the lessons learned program : What is the Lessons Learned Program and how might it relate to better project management at NASA?Why is individual accountability so important for managing risks in NASA projects? Doesn't the team shoulder the responsibility for achieving success?
Develop a report for board outlining important features : Develop a report for the Board outlining important features that will need to be considered before proceeding with the expansion - In the business world this may be called a scoping report and can often lead to a full Business Case. This scoping ..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  The factorial of a positive integer n, denoted by n!

Write a program that computes the sequence of factorial values: 1! = 1, 2! = 2, 3! = 6, 4! = 24, 5! = 120, 6! = 720, ....

  Why does the neverwet spray protect it from water

As is know, acetone is a polar molecule like water, so isn't it suppose to mix? So my question is: why does the Neverwet spray protect it from water but not from oils and detergents?

  Program that compares the number of possible sequences

Write a c++ program that compares the number of possible sequences of the length L that can be generated. The program must output a formatted list comparing the number of possible sequences for L=5,6,7,8,9. given size N=9

  Takes n number of element from user

Write a C program which takes n number of element from user (where, n is specified by user) and stores data in an array. Then, this program displays the largest element of that array.

  Convert the following c program to mips program

Convert the following C program to MIPS program. Assuming that i, j, k, f, are stored in registers $s0, $s1, $s2, $s3 already. The base address of arrays A and B are in registers $s4 and $s5, respectively. Show work.

  Returns the memory address of the first element

Assume that there's a function double* getMemoryForDouble (int n) that returns the memory address of the first element of a contiguous block of memory available for storing n doubles.

  Write program that takes number show number in power of 3

Write a program that takes a number between -121 and 121 and output that number in the format of power of 3 (1,3,9,27)

  Write a program that will find the smallest number

How to do the subsequent program WITHOUT USING Arrays - Write a program that will find the smallest, largest, and average values in a collection of N numbers. Get the value N before scanning each value in the collection of N numbers.

  Program that utilizes a good design proces

Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array one-dimensional..

  Write a program to simulate the process

Write a program to simulate the process of an n-bit (n x n) shift-and-add syn-chronous multiplier - Compare performance of an unsigned shift-and-add multiplier with one using a shift-over technique.

  Write a c program to pick up the largest number

Write a C program to pick up the largest number from any 5 row by 5 column matrix - It must compile with no errors and follow the directions.

  Prepare a main function

Write a function that converts an input of some integer number of nickels into outputs of integer numbers of dollars, quarters, and nickels.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd