212k views
5 votes
The monthly saving P that has to be deposit in a saving account that pays an annual interest rate of r in order to save a total amount of F in N years can be calculated by the formula: P = F(r/12) (1 + r/12)^12N - 1 Calculate the monthly saving that has to be deposit in order to save $100,000 in 5, 6, 7, 8, 9, and 10 years if the annual interest rate is 4.35%. Display the results in a two-column table where the first column is the number of years and the second column is the monthly deposit. The variation of vapor pressure p (in units of mm Hg) of benzene with temperature in the range of 0 < T < 42 degree C can be modeled with the equation: ln (p) = k/.0101 a - b where a = 34172 and b = 7.9622 are material constants and T is absolute temperature (K). Write a program that calculates the pressure at various temperatures and displays the results in a three column table. The first column must be temperatures in degree C, the second column, temperatures in K and the third column is the corresponding pressures in mm Hg. Include title and header information for each column.

1 Answer

1 vote

Answer:

Step-by-step explanation:

for the first question:

P = F(r/12) (1 + r/12)^12N - 1

P = 10000(0.0435/12)(1+0.0435/12)^((12*N)-1)

n P

5 448.7710111

6 468.6865023

7 489.4858002

8 511.208126

9 533.894442

Using C#

public void Main( ){

Print(

}

public double CalcP(double T){

double a = 34172;

double b = 7.9622;

return Math.Exp(T/(0.0101*a) -b);

}

pubic void Print(params double[ ] T){

foreach (var t in T) {

Console.WriteLine( T-273 + " " + T + " " + CalcP(T) );

}

}

User ThomasMX
by
6.4k points