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

Read Chapter 1 Corporate Finance Customized Ehrhardt Brigham 6th Edition Book Answer Quest Q34233127Read Chapter 1 Corporate Finance Customized Ehrhardt Brigham 6th Edition Book Answer Quest Q34233127

<br/><img src="https://media.cheggcdn.com/media%2F984%2F9842345a-a05c-4d9f-a0fd-168c35da2101%2Fimage.png" alt="read chapter 1 from Corporate Finance customized ehrhardt & brigham 6th edition book and answer all the question. 1-1 Define each of the following terms: a. Proprietorship; partnership,