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
What are major difference between classic ADO and ADO.NET ? Some major differences between the classic ADO & ADO.NET are as follows: 1) As in the classic ADO we had server a

Describe IUKNOWN interface All COM object supports atleast one interface, that is  IUnknown interface. All interfaces are the classes, derived from the base class IUnknown. Eve

I need a Web Application UI Modernization - Preliminary Technology Assessment We are seeking to overhaul a 10-year old enterprise application, CRM-related as well as web-based t

Explain different types of XML Application Programming Interface (API). The following are two main parts of XML parsers: Tree-based API - Compiles an XML document into a tre

ASP.NET/MSSQL/ MVC completing backend solution + integrating with frontend. Project Description: System is used for tracking company's activities through several projects by

Explain Dataset Accept Changes and Data Adapter Update methods?  Data Adapter Update method Calls the respective INSERT, UPDATE, or DELETE statements for each inserted, updated

What is an activity? In Windows Workflow Foundation 4.0, an activity is the basic unit of composition and implementation of a workflow. Each activity in a workflow consists of

Could you please explain to me the different types of DOT NET programming

What are function points? The FPA is breaking huge systems into smaller pieces and analyzing them. The Software application is a combination of set of elementary processes. The

What's difference between "Optimistic" and "Pessimistic" locking? In the pessimistic locking when user wants to update a data it locks the record and till then no one can updat