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

  Write a version of function

Demonstrate me how to write a proper code for this problem and how to complete it

  Our string class always deletes the old character

Our String class always deletes the old character buffer and reallocates a new character buffer on assignment or in the copy constructor. This need not be done if the new value is smaller than the current value

  Program to implement a user defined function

Write a C++ program that uses user-defined functions to read three integer numbers from the user, compute the summation, difference, and product of these numbers, and print the results on the screen.

  Write a function named read_line

supposes you have a directory whose name is stored in 'specs.file_dir' which contains a file whose name is stored in 'specs.file_name'.

  Variable of primitive type

What value is stored in ch by the following statement? ch = str.charAt(0); What value is stored in ch by the following statement? ch = str.charAt(10);

  Uses classes with linked list

Turning a work in C++ that uses classes with a linked list to a no classes project

  Question 1 use the attached database to provide the

question 1 use the attached database to provide the relational algebra which would list the requested information

  Complete graphical and possibly networked two-player game

Analyze a basic set of requirements for a problem and create basic test cases for a program - Describe what is an attribute or data member of a class

  Write a pseudocode function in terms of adt appointment

Write speci?cations for a method within Date that advances any given date by one day. Include a statement of purpose, the preconditions and postconditions, a description of the arguments, and a description of any return value.

  Prepare a program to show the fibonacci numbers

Write a C++ program to display first 20 Fibonacci numbers in descending order - Prepare a program to show the Fibonacci numbers

  Write a function named concatenate

If the function discovers that the number of cells in the large array is not large enough to hold all the numbers to be copied into it, then the function should return 0 to indicate failure.

  Write a program that calculates the user''s bmi

Write a program that calculates the user's body mass index (BMI) and categorizes it as underweight, normal, overweight, or obese, based on the following table from the United States Centers for Disease Control

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