Problem 4
DO NOT USE ANY LOOPS,IF ELSE OR SWITCH CASE
Write a program that transforms numbers 1, 2, 3, 4, ....12 into the corresponding month names January, .........
For example, input is 5
Output is as follows:
Month name corresponding to 5 is May.
You will be writing a class MonthNames with a method for returning month name and any other thing required.
You also need to write a class TestMonthNames for taking input from user, creating object, calling methods and for output as shown above.
PLEASE CAN YOU GIVE CONCEPT OF HOW TO SOLVE ABOVE PROB
DO NOT USE ANY LOOPS,IF ELSE OR SWITCH CASE
DO NOT USE ANY LOOPS,IF ELSE OR SWITCH CASE
Write a program that transforms numbers 1, 2, 3, 4, ....12 into the corresponding month names January, .........
For example, input is 5
Output is as follows:
Month name corresponding to 5 is May.
You will be writing a class MonthNames with a method for returning month name and any other thing required.
You also need to write a class TestMonthNames for taking input from user, creating object, calling methods and for output as shown above.
PLEASE CAN YOU GIVE CONCEPT OF HOW TO SOLVE ABOVE PROB
DO NOT USE ANY LOOPS,IF ELSE OR SWITCH CASE