Details of this Paper

Write a program that reads a power of 10

Description

solution


Question

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

 

Paper#69489 | Written in 18-Jul-2015

Price : $22
SiteLock