Click here to Skip to main content
15,892,746 members
Articles / Desktop Programming / WPF

Loan Amortization Application in WPF using VC++

Rate me:
Please Sign up or sign in to vote.
4.75/5 (6 votes)
10 Jul 2009CPOL22 min read 61.5K   2.1K   27  
This article discusses how to do WPF programming in VC++ and one working example of Loan Amortization with some background.

#ifndef _PAYMENTINFO_H
#define _PAYMENTINFO_H

enum PaymentMethod
{
	NotSelected = 0,
	Monthly,
	Quartly,
	BiYearly,
	Yearly,
	Daily
};

public ref class PaymentInfo
{
private:
	int paymentNo;
	double payment;
	double principle;
	double interest;
	double balance;

public:
	property int PaymentNo
	{
		int get()
		{ return paymentNo; }

		void set(int value)
		{ paymentNo = value; }
	}

	property double Payment
	{
		double get()
		{ return payment; }

		void set(double value)
		{ payment = value; }
	}

	property double Principle
	{
		double get()
		{ return principle;	}

		void set(double value)
		{ principle = value; }
	}

	property double Interest
	{
		double get()
		{ return interest; }

		void set(double value)
		{ interest = value;	}
	}

	property double Balance
	{
		double get()
		{ return balance; }

		void set(double value)
		{ balance = value; }
	}
};

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader American Institute for Research
United States United States
Working as a Team leader in American Institute for Research

Comments and Discussions