Write a simple C++ program to implement the following algorithm.A program is required to prompt a user for a value in cents then calculate and display thenumber of thousands of dollars, hundreds, dollars, and cents.Example outputEnter a value in cents> 123456That is: 1 thousand 2 hundred 34 dollars and 56 centsPseudocode Analyze_CentsPrompt for valueGet valuethousands = value divided by (THOUSAND_CENTS)remainder = value % THOUSAND_CENTShundreds = remainder / HUNDRED_CENTSremainder = remainder % HUNDRED_CENTSdollars = remainder / DOLLAR_CENTScents = remainder % DOLLAR_CENTS
Display thousands, hundreds, dollars, centsEND
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here