How to develop a program to Calculate the maturity amount after a period of deposit. The bank pays 4% interest per year for any deposits made. using c#.
Answer
using System;
namespace a {
class Program {
// Calculate amount from deposit percent 4%
static double CalculateAmount(double amount) {
return amount * 1.04;
}
static void Main(string[] args) {
// example of work
Console.WriteLine(CalculateAmount(12000));
Console.WriteLine(CalculateAmount(4500));
Console.ReadKey();
}
}
}http://www.AssignmentExpert.com/
Comments