compute and output the penalty on an unpaid Credit Card balance. Assume that interest rate on unpaid balances is 1.5% per month. ask the user for their credit card balance and monthly payment amount. Then output the new balance and the penalty amount to be added to the next month bill. #include using namespace std; int main() { const double INTEREST_RATE = 0.015; // ask the user for the credit card balance // ask the user for a payment amount //calculate balance as creditCardBalance - payment //determine if a penalty will be assessed for unpaid balance. //set the output precision to reflect dollar and cents cout << "The new credit card balance is: $" << value_here << endl; cout << "The penalty to be added to your next month bill is: $" << penalty_amount << endl; return 0; }
compute and output the penalty on an unpaid Credit Card balance. Assume that interest rate on unpaid balances is 1.5% per month. ask the user for their credit card balance and monthly payment amount. Then output the new balance and the penalty amount to be added to the next month bill.
#include <iostream>
using namespace std;
int main() {
const double INTEREST_RATE = 0.015;
// ask the user for the credit card balance
// ask the user for a payment amount
//calculate balance as creditCardBalance - payment
//determine if a penalty will be assessed for unpaid balance.
//set the output precision to reflect dollar and cents
cout << "The new credit card balance is: $" << value_here << endl;
cout << "The penalty to be added to your next month bill is: $" << penalty_amount << endl;
return 0;
}
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images