78 439
Assignments Done
Successfully Done
In September 2019

Answer to Question #52985 in C# for Moorthy

Question #52985
Develop a program that accepts a deposit amount and period of deposit. Calculate the maturity amount after the period of deposit. The bank pays 4% interest per year for any deposits made in the bank.
Expert's answer
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication2
class A
public double maturity_amount(double amount,double period)
double maturity_amount = amount * (1.0 + (period / 12.0) * 0.04);
return maturity_amount;

class Program
static void Main(string[] args)
double amount,period;
A ob = new A();
Console.WriteLine("Enter a deposit amount: ");
amount = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Enter a period of deposit (in mounth): ");
period = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("The maturity amount after the period ("+period+") of deposit is " + ob.maturity_amount(amount,period));


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions