Question: The Time in Words problem solution. I solved this problem, but please write down the algorithm. Please look at the attached picture and output. For

The Time in Words problem solution. I solved this problem, but please write down the algorithm.

Please look at the attached picture and output. For this problem, I need ALGORITHM. I don't need code. I just need the algorithm of this problem.

The Time in Words problem solution. I solved this problem, but pleasewrite down the algorithm. Please look at the attached picture and output.

For this problem, I need ALGORITHM. I don't need code. I justneed the algorithm of this problem. import java.io.*; import java.util.*; public class

import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { = ! I = Scanner sc = new Scanner(System.in); Integer hour = Integer.parseInt(sc.nextLine()); Integer min = Integer.parseInt(sc.nextLine()); String[] numNames = { "", "one", " two", " three", " four", " five", six", " seven", "eight", " nine", "ten", "eleven", twelve", " thirteen", " fourteen", "fifteen", "sixteen", seventeen", " eighteen", " nineteen" }; String[] tensNames = { "", "ten", " twenty", "thirty", " fourty", 'fifty", "sixty", "seventy", "eighty", " ninety" }; String sepStringi =" minutes past"; String sepString2 =" minutes to "; String minString = if (min o) System.out.println(numNames[hour].trim() + " o'clock"); else if (min == 15) System.out.println("quarter past " + numNames[hour].trim()); else if (min 30) { min = 60 - min; if (min == 1) sepString2 =" minute to "; if (min

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!