Write a program that reads a power of 10

Topsolutions
 (Not rated)
 (Not rated)
Chat

You MUST use a switch statement in your solution to this problem.
A million is 106 and a billion is 109. Write a program that reads a power of 10 (6, 9,
12, etc.) and displays how big the number is (million, billion, etc.). Display an
appropriate message for the input value that has no corresponding word. The table
below shows the correspondence between the power and the word for that power.
*See the table below for help.
Power of 10 Number
6 Million
9 Billion
12 Trillion
15 Quadrillion
18 Quintillion
21 Sextillion
24 Septillion
27 Octillion
30 Nonillion
100 Googol

    • 12 years ago
    Solution
    NOT RATED

    Purchase the answer to view it

    • numberproject.zip