ISC 2011 [Question 1] Practical Paper Solved [Number in Word]

Question:

Write a program to input a natural number less than 1000 and display it in words. [Note we have solved the program for numbers in the range [1-9999]

Test your program for the given sample data and some random data.

Sample Data:

Input: 29
Output: TWENTY NINE

Input: 17001
Output: OUT OF RANGE

Input: 119
Output: ONE HUNDRED AND NINETEEN

Input: 500
Output: FIVE HUNDRED

Programming Code:

Output:

1. Enter a Number : 129
Output = One Hundred And Twenty Nine

2. Enter a Number : 8307
Output = Eight Thousand Three Hundred And Seven

3. Enter a Number : 54987
Out of Range

A teacher whose aim is to make Java a fun to learn experience for the school students by striving to build clear fundamentals of every concepts and helping students to develop their ability to reason and logically analyze any given programs.

Your Turn To Talk

Your email address will not be published.