Write an application that prompts the user for a checking account balance and a savings account balance. Display the message “Checking account balance is low” if the checking account balance is less than $10. Display the message “Savings account balance is low” if the savings account balance is less than $100. Save the file as AccountBalance.cpp.
#include <iostream>
using namespace std;
int main()
{
//declare variables
char acctType;
float acctBalance;
double minimumBalance;
//For input, get the account type, account balance, and the minimum Balance
cout << "Account Type" << endl;
cout << "C = checking account" << endl;
cout << "S = saving account" << endl;
cout << "Enter the Account Type: ";
cin >> acctType;
cout << "Enter minimum account Balance: ";
cin >> minimumBalance;
cout << "Enter account balance: ";
cin >> acctBalance;
if (acctType == 'C' && acctBalance < minimumBalance)
{acctBalance = acctBalance - 10.00}
if (acctType == 'S' && acctBalance < minimumBalance)
{acctBalance = acctBalance - 100.00}
//I am confused here ^
cout << "Account Type: " << acctType << endl;
cout << "Account Balance: $" << acctBalance << endl;
}