computer science HW

profilefaisal0z
hw-09a_cpp-rever-int_array.pdf

ECE-206 HW-09A Page 1 of 1

HW-09: C++ - Reversed Integer / Array Usage

Draw a flowchart that reverses the digits in an integer and translate the flowchart

into a C++ program. Assume that the maximum value of the integer is 99999. Use

an array to solve the problem.

For example, if the following integers are entered, the outputs are:

Integer Output

-----------------------------------------

0 0

10 1

12 21

123 321

7600 67

8015 5108

90000 9

Test your program with the integers given in the example. Submit a copy of the

flowchart, C++ program and run output.