Write a main program that will call the input routine to gather the data.

C programming!!!!! Expert only
Compound interest.

 

(a) Write a function to compute and return the amount of money, A, that you will have in n years if you invest P dollars now at annual interest rate i. Take n, i, and P as parameters. The formula is

 

A = P(1 + i)n

 

(b) Write a function to compute and return the amount of money, P, that you would need to invest now at annual interest rate i in order to have A dollars in n years. Take n, i, and A as parameters. The formula is:

P =A / (1 + i)n

 

(c) Write a function that will read and validate the inputs for this program. Using call by value/address, return an enumerated constant for the choice of formulas, a number of years, an interest rate, and an amount of money, in dollars. All three numbers must be greater than 0.0.

 

(d) Write a main program that will call the input routine to gather the data. Then, depending on the user’s choice, it should call the appropriate calculation function and print the results of thecalculation.

 

find the cost of your paper

Discuss the behavior of the phase of the reflection coefficient for incident grazing angles less than and larger than critical.

Q1: In a deep ocean with constant salinity 3.5% the water temperature distribution is assumed to be exponential in depth, where T and T0 are in degrees Celsius, and z….

What is the form of this equation in three dimensions?

Sound propagating in a moving medium is governed by a so-called convected wave equation. Consider the case where the background flow velocity is uniform in the x-direction with velocity V….

Derive Green’s theorem for a fluid medium with variable density, where the wave equation is of the form given in (2.14).

Derive Green’s theorem for a fluid medium with variable density, where the wave equation is of the form given in (2.14). 1. Make a computer code for computing the magnitude….