# Computer Science

posted by .

The digits 0, 1, and 8 look much the same if rotated 180 degrees on the page (turned
upside down). Also, the digit 6 looks much like a 9, and vice versa, when rotated 180
degrees on the page. A multi-digit number may also look like itself when rotated on the
page; for example 9966 and 10801 do, but 999 and 1234 do not.
You are to write a program to count how many numbers from a given interval look like
themselves when rotated 180 degrees on the page. For example, in the interval [1..100]
there are six : 1, 8, 11, 69, 88, and 96.
Your program should take as input two integers, m and n, which define the interval to be
checked, 1 â‰¤ m â‰¤ n â‰¤ 32000. The output from your program is the number of rotatable
numbers in the interval.
You may assume that all input is valid.
Input/output is not from/to files for this question. Keyboard input and screen output is
expected.
Sample Session User input is in italics.
Enter the lower bound of the interval:
1
Enter the upper bound of the interval:
100
The number of rotatable numbers is:
6

I am kind of stuck withe logic... help me please.

• Computer Science -

Yes .... Quadrature PSK or QPSK has a menu of 4 phases (45, 135, 225 & 315 degrees), where two bits designate each symbol. 8PSK, 16PSK, . . . 256PSK are also in use.

## Similar Questions

Find 3 uppercase letters that look the same when rotated 180 degrees.Then,what letter's 90,180,270 degree rotations has this outline?
2. ### Computer Science

The digits 0, 1, and 8 look much the same if rotated 180 degrees on the page (turned upside down). Also, the digit 6 looks much like a 9, and vice versa, when rotated 180 degrees on the page. A multi-digit number may also look like …
3. ### Computer Science

The digits 0, 1, and 8 look much the same if rotated 180 degrees on the page (turned upside down). Also, the digit 6 looks much like a 9, and vice versa, when rotated 180 degrees on the page. A multi-digit number may also look like …
4. ### Computer Science

The digits 0, 1, and 8 look much the same if rotated 180 degrees on the page (turned upside down). Also, the digit 6 looks much like a 9, and vice versa, when rotated 180 degrees on the page. A multi-digit number may also look like …
5. ### geometry,math

Find 3 upper case letters that look the same when rotated 180 degrees. Then, what letter's 90, 180, and 270 degree rotations has this outline?
6. ### math,geometry

Find 3 upper case letters that look the same when rotated 180 degrees. Then, what letter's 90, 180, and 270 degree rotations has this outline?
7. ### MATH

Find 3 upper case letters that look the same when rotated 180 degrees. Then, what letter's 90, 180, and 270 degree rotations has this outline?
8. ### math,geometry

Find 3 upper case letters that look the same when rotated 180 degrees. Then, what letter's 90, 180, and 270 degree rotations has this outline?
9. ### geometry

In the English alphabet, there are 7 capital letters that look the same after being rotated 180∘. Those letters are H, I, N, O, S, X, and Z. How many different 3 letter "words" can be made from these letters such that when the …
10. ### Math

A square has rotational symmetry because it can be rotated 180 degrees so that its image matches the original. Your friend says the angle of rotation is 180 divided by 4 = 45 degrees. What is wrong with this statement?

More Similar Questions