Posts

Showing posts from March, 2021

Pattern Program using 2D Array in JAVA

Image
Pattern Program #2 using Array in Java Question :   Write a program to print the following pattern.

Interesting Pattern Program using Array in JAVA

Image
Pattern Program using Array in Java Question :   Write a program to print the following pattern.  

Frequency of each digit of a number in Java

Image
Frequency of each digit of a Number Question :   Write a program to count and display the frequency of each digit of a number. For Example  :-   Input                                                            : 19224 Output                                                      :   Frequency of 1 is : 1                                                                        Frequency of 2 is : 2                                                                         Frequency of 4 is : 1                                                                         Frequency of 9 is : 1 Input                                                     : 1113 Output                                             :   Frequency of 1 is :  3                                                                         Frequency of 3 is :  1

Convert Time into Words in JAVA

Image
Time Program in Java Question :   Given a time in the format of hh:mm (12-hour format) 0 < hh <=12, 0 <= mm < 60. The task is to convert it into words as shown: For Example  :-   Input                                                           : hr = 5, min = 0 Output                                                     : Five O' Clock   Input                                                           : hr = 6, min = 24 Output                                                     : Twenty Four Minutes Past Six Terms to Remember :- 6:00 - six o'clock 6:10 - ten minutes past six 6:15 - quarter past six 6:30 - half past six 6:45 - quarter to seven 6:47 - thirteen minutes to seven