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) : Description Range Integers Represented Java Using Primitive Data Type 263 263 1 Need Manip Q36374894 . . . .(Solved) : Description Range Integers Represented Java Using Primitive Data Type 263 263 1 Need Manip Q36374894 . . . .

<p><img alt="DESCRIPTION: The range of integers that can be represented in Java using a primitive data type is only from-263 to 263-1. Wha" src="https://media.cheggcdn.com/media%2F7ee%2F7ee158a6-41af-4b27-8e4a-1caf6750d6b0%2FphpBqoOEL.png" style="height:657px;width:688px;" aria-describedby="d3f"/></p>DESCRIPTION: The range of integers