I am having trouble getting my program to run. I can't figure out where this error is...prob. something easy and i'm just to tired to find it. Anyways here is the project details and the c++ code that I have wrote is attached below since I haven't messed with the code wrap yet. If there are any suggestions on how I can make the program easier pls tell me your 2 cents.
error: 56: ) expected in function main()
I counted and couldn't find where i left a ")" off if someone would show me another way to write the formula into an easier to handle form it would be greatly appreciated as well.
The equation of state for carbon dioxide is given by Reynolds as
****formula in word attachment*******
where ρ is the density in kg/m^3, P is the pressure in Pa, T is the temperature in K, and the constants are given below:
Write a C++ function that will calculate the pressure of superheated carbon dioxide given the density and temperature. Also write a driver program that will illustrate the use of the function for the following data points:
Case # Density (kg/m^3) Temperature (K)
1 18.5908 300
2 50.0 500
3 50.0 700
4 50.0 900