Investment equation - c# program, DOT NET Programming

Investment Equation - C# Program

I didn't know the exact code for computing Investment Equation. Can anybody suggest me the correct way for my problem?

Posted Date: 2/12/2013 12:09:18 AM | Location : United States





Some new learner of C# faces this type of problem. Don''t worry use this code once.

using System;  

class Investment

{

public static void Main()

{

int P=1000,n;

float r=0.1F;

double V;  

Console.WriteLine(" ***** Investement Option of 10 yrs **** ");    

Console.WriteLine(""); // Blank Line     

Console.WriteLine("Principal(P)    Rate(r)      Number Of Yrs(n)   Value Of Money(V)\n");

Console.WriteLine("--------------\n");

V = P * (1 + r);

for (n=1;n<=10;n++)

{

Console.WriteLine ("        " + P + "          " + r + "      " + n + "           " + V);

P = P + 1000;

r = r + 0.01F;

V = P * (1 + r);

}  

Console.ReadLine();

}

}

Posted by Edward | Posted Date: 2/12/2013 12:10:40 AM

Very useful Code. This coding helps me to get good grades in my examination. Thank You so much.

Posted by Bella | Posted Date: 2/12/2013 12:11:21 AM


Related Discussions:- Investment equation - c# program, Assignment Help, Ask Question on Investment equation - c# program, Get Answer, Expert's Help, Investment equation - c# program Discussions

Write discussion on Investment equation - c# program
Your posts are moderated
Related Questions
I have a page that I require a few pieces of data to be pulled out of. The page is such that it needs interaction; there is a little bit of data entry to get the needed data, and t

how can we use entity framework in ASP.Net MVC

What is Data Independence? Data independence means that "the application is independent of the storage structure and access method of data". In other words, the ability to cha

What are tuples? Tuple is a fixed-size collection that can have elements of either similar or different data types. Same to arrays, a user must have to specify the size of a tu

What is cross page posting? By default, the button controls in the ASP.NET pages post back to the similar page that contains button, where you can write an event handler for th

Website update... Immediate need I want someone experienced in ASP.NET who can set up PayPal on my website by Feb. 1st. I would similarly like to have some changes made in the t

Why does an organization need to manage the workloads? The workload can be explained as an independent service or a set of code that can be implemented. It can be everything f

This is a whole time contractual role working for a sports advisory service. We are data insights consultancy specializing in sports. We consult to a number of sporting organizatio

What is different overloading and overriding, please explain

Consumer and Dealer management Project Description: Need to code the existing UI for relative and CRUD automation. Prepare CRUD for almost 7-10 forms with search and repor