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
Project Description: i will testing some software which you need and i promise to do my job is the best way, and as fast as possible. Skills required: .NET, MySQL, C# P

Explain the concept of Bookmarks in WF 4.0. In WF 4.0, a bookmark is a mechanism that enables an activity to wait for an input without interrupting a workflow thread. When an a

What is a fish bone diagram? Dr. Kaoru Ishikawa discovered the fishbone diagram. Therefore, it can be also known as Ishikawa diagram. The Fishbone diagram is an analysis dia

Project Description: I am seeking some automated trading software for the given strategy, I am using Omnesys Nest trader Step 1: Buy one share at current market price (ex:

What is a candidate key? A table may have more than one combination of columns that could uniquely identify the rows in a table; every combination is a candidate key. During th

What are the different types of workflow in WF? In WF 4.0, the following two types of workflows are used: Flowchart workflows - Helps you to make workflows using the commo

What is difference between abstract classes and interfaces? The difference b/w abstract and interfaces are s follows:- 1.     The Abstract classes can have concrete methods

Find out the Factorial - C# Program I've been trying so many codes for this but those codes didn't work well. Please write the code for find out the factorial of an integer nu

Connect a Software Application to a Database Backend Acquire the knowledge and develop the skills needed to prototype an end user application using a rapid application dev

Problem: (a) Define the term ViewState as used in the ASP.NET framework. (b) What is a StateBag class? Give a simple example to support your answer. (c) (i) Distingui