Answer to Question #147450 in C# for numra

Question #147450
All the banks operating in India are controlled by RBI. RBI has set a well defined guideline (e.g. minimum interest rate, minimum balance allowed, maximum withdrawal limit etc) which all banks must follow. For example, suppose RBI has set minimum interest rate applicable to a saving bank account to be 4% annually; however, banks are free to use 4% interest rate or to set any rates above it.
1
Expert's answer
2020-11-29T23:48:06-0500
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;


namespace Bank
{
    public class Program
    {
        public static void Main(string[] args)
        {
            double minimumInterestRate;
            double minimumBalanceAllowed;
            double maximumWithdrawalLimit;
            
            do
            {
                Console.Write("Enter interest rate: ");
                minimumInterestRate = double.Parse(Console.ReadLine());
                if(minimumInterestRate < 4)
                {
                    Console.WriteLine("Interest rate can't be lower than 4%");
                }
                
            }while(minimumInterestRate < 4);
            
            Console.Write("Enter minimum balance allowed: ");
            minimumBalanceAllowed = double.Parse(Console.ReadLine());
            
            Console.Write("Enter maximum withdrawal limit: ");
            maximumWithdrawalLimit = double.Parse(Console.ReadLine());
            
        }
    }
}

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS