WHY
DO HOT AIR BALLOONS FLY?
Properties
of the US Standard Atmosphere are given in the file atmosphere.txt.
For this assignment you should write a program which:
- Reads
the data from the file into 3 arrays altit[17], temp[17], pres[17] for
altitude, temperature and pressure ratio.
- Prompts
the user for an altitude in meters ( within the range of the data) and
reads the input from the screen.
- Using
linear interpolation and the data of the two altitudes sandwiching the
entered altitude, calculates and prints the temperature and pressure
at the given altitude. The results must be given in both metric and
English units.
- Produces
a file ( named xxxx7parep.txt ) which lists the data given : elevation
in feet, the temperature in degrees Fahrenheit, the pressure in psi
and also the altitude entered and the calculated temperature and pressure
all in English units.
In
addition you must
- Import
the report file to a spreadsheet and draw a chart, which shows the temperature
and pressure profiles together with the two calculated points as two
large red circles.
- Enhance
your chart by titles and units and captions.
|
|