Pretty new to programming. It runs but it doesn't display the error message: Please enter a positive number. Any suggestions? This is just the fragment that won't go.
Code:do { cout <<"The estimated miles driven per year?" << endl; cin >> miles_per_year; } while ( ! ( miles_per_year > 0)) { cout <<"Please enter a positive number." <<endl; }