#include #include using namespace std; int main () { int totalcents (0); cout << "Enter the total amount in cents: "; cin >> totalcents; if (!cin) { cerr << "This is not a valid number."; return EXIT_FAILURE; } int dollars {totalcents / 100}; int cents {totalcents % 100}; cout << "You Have:" "\n"; cout << "Dollars: " << dollars << "\n"; cout << "Cents: " << cents << "\n"; return EXIT_SUCCESS; }