Output each name and corresponding account balance in the following format: (Names are left justified and account balances are right justified) Name Account Balance Kris Miller 457.34 John Doe 2345.30 Solution: #include #include using namespace std; int main() { string name1 = "Kris Miller"; string name2 = "John Doe"; double balance1; double balance2; cout << "\nEnter the account balance for " << name1 << ":\n"; cin >> balance1; cout << "\nEnter the account balance for " << name2 << ":\n"; cin >> balance2; //write in-lecture code here cout << fixed << setprecision(2); cout << "\nName Account Balance\n"; cout << left << setw(20) << name1 << right << setw(15) << balance1 << "\n"; cout << left << setw(20) << name2 << right << setw(15) << balance2 << "\n"; return 0; }