Question: Instructions +main.cpp 1#include Summary Interest on a credit cards unpaid balance is calculated using the average daily balance. 3 using nanespace std: int main) 6/

 Instructions +main.cpp 1#include Summary Interest on a credit cards unpaid balance

Instructions +main.cpp 1#include Summary Interest on a credit cards unpaid balance is calculated using the average daily balance. 3 using nanespace std: int main) 6/ Write your main here Suppose that netBalance is the balance shown in the bill, payment is the payment made, ds is the number of days in the billing cycle, and d2 is the number of days payment is made before billing cycle. return 0 Then, the average daily balance is: averageDailyBalance = (netBalance . dl - payment . d2) / dl If the interest rate per month is, say. 0.0152, then the interest on the unpaid balance is: | interest = averageDailyBalance 6.0152 Instructions Write a program that accepts as input netBalance.d1 paynent. d2 .and interest rate per month(interestRate ). The program outputs the interest. Format your output to two decimal places

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!