Course Solutions Uncategorized (Solved) : Need Net Present Value Calculator C Using Arrays Loop Info Http Financeformulasnet Netpres Q32456950 . . . .

(Solved) : Need Net Present Value Calculator C Using Arrays Loop Info Http Financeformulasnet Netpres Q32456950 . . . .

 

I need a Net Present Value Calculator in C using arrays and forloop.

Here is info about what it is:http://financeformulas.net/Net_Present_Value.html

I myself tried to write the code, but am unable to get thecorrect answer.
Here is my code:

//

printf(“Enter Initial Investment:n”);
scanf(“%d”,&z);
printf(“Intrerest Raten”);
scanf(“%f”,&w);
printf(“Period of Cash flow in Yearsn”);
scanf(“%d”,&x);
printf(“Cash Flowsn”);
for(int m=0;m scanf(“%d”,&array[m]);
s=0;
for(int m=0;m {
s=s+(array[m]/pow(w,(m+(1/100))));
}
result=s-z;

//

If my code is completely wrong, then please provide me with thecorrect one, thanks

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Following Best Describes Running Time Algorithm Takes Input Set X N Elements Outputs Permu Q31440386 . . . .(Solved) : Following Best Describes Running Time Algorithm Takes Input Set X N Elements Outputs Permu Q31440386 . . . .

<p><img alt="Which of the following best describes the running time of an algorithm that takes as input a set X of n elements and outputs all permutations of x?" src="https://media.cheggcdn.com/media%2Fba6%2Fba6731db-2eb0-406e-8574-36e68e59eb79%2FphpLmeMtl.png"