Advanced Coding Question: There are two banks – Bank A and Bank B. Their interest rates vary. You have received offers from both banks in terms of the annual rate of interest, tenure, and variations of the rate of interest over the entire tenure. You have to choose the offer which costs you least interest and reject the other. Do the computation and make a wise choice. The loan repayment happens at a monthly frequency and Equated Monthly Installment (EMI) is calculated using the formula given below : EMI = loanAmount * monthlyInterestRate / ( 1 – 1 / (1 + monthlyInterestRate)^(numberOfYears * 12))
PrepInsta
author
2y
#include #include using namespace std; int main () { double p, s, mi, sum, emi, bank[5], sq; int y, n, k, i, yrs, l = 0; cin >> p; cin >> y; for (k = 0; k < 2; k++) { cin >> n; sum = 0; for (i = 0; i ...read more
Help your peers!
Add answer anonymously...
Top TCS TCS Digital interview questions & answers
Top HR questions asked in TCS TCS Digital
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app