PDA

View Full Version : A simple program


robertbob
Apr 21, 2003, 06:19 PM
Hello,

I am to write a computer program to express the variation of specific heat Cp of air with
Temperature as a third- degree polynomial, using the data in Table A-2b, in our book. The formula of Cp isn't important, I couldn't understand how the program is supposed to express the variation of Cp's with temperature as a third degree polynomial...

For example the table says
At 250 Kelvin -> Cp = 1.003 kJ/kg.K
At 300 Kelvin -> Cp = 1.005
At 350 Kelvin -> Cp = 1.008
At 400 Kelvin -> Cp = 1.013
...

So what am I supposed to do?(third degree polynomial?)

I have some knowledge in Java, but do you suggest any other language for this simple program?
Thanks in advance...
Bob

CF_Master
Jul 23, 2003, 12:16 AM
This only goes to show you that programs are not "simple", if they were you wouldn't be having problems creating them and programmers wouldn't be making so much money.

Anyway this isn't really so much a programming question as it is a math and science question.

First you need to figure out and know how the calculations are done before you can write a program to automatically perform the calculations. Or was it a list you wanted to make to just call all the measurements?