Question: A digital wall clock displays the time in a 24-hour clock format. From 00:00 to 23:59, as HH:MM (Hours & Minutes) format. Someone categorized

A digital wall clock displays the time in a 24-hour clock format.

 From 00:00 to 23:59, as "HH:MM" (Hours & Minutes) format. Someone categorized 

the numbers into 4 parts POWERFUL, MIRROR, BOTH SAME, and REGULAR. Example: 

A digital wall clock displays the time in a 24-hour clock format. From 00:00 to 23:59, as "HH:MM" (Hours & Minutes) format. Someone categorized the numbers into 4 parts POWERFUL, MIRROR, BOTH SAME, and REGULAR. Example: A Sample output screen shot Provided. Makeup_Assignment_1.png POWERFUL: 00:00, 11:11, 22:22 (All Digits are same) MIRROR: 01:10, 02:20, 03:30, (The number on the other side is a Mirror Reflection) BOTH_SAME: 01:01, 02:02, 03:03 (Left and Right parts are same) REGULAR: Remaining all numbers 00:01, 00:02, 00:03, 00:04 Write a program in Python to print 00:00 to 23:59, and group as per category.. Print "POWERFUL", and print all the numbers in a group in tabs. Print "MIRROR", and print all the numbers in a group in tabs. Print "BOTH_SAME", and print all the numbers in a group in tabs. The program should include the following: 1. Docstring with the date, developer name, student id, program/course name, description, Explain the variable, statements, conditions, etc... using Comments 2. Only "while, do while loops" allowed. No for loops. 3. For using String Index, Slicing, concatenation, print format using placeholders 4. For not Hard coding the things, not writing lengthy statements, not writing so many == (Not more than 6), is, in, or, and, statements Output should be: POWERFULL: 00:00, 11:11, 22:22, MIRROR: 01:10, 02:20, 03:30, 04:40, 05:50, 10:01, 12:21, 13:31, 14:41, 15:51, 20:02, 21:12, 23:32, BOTHSAME: 01:01, 02:02, 03:03, 04:04, 05:05, 06:06, 07:07, 08:08, 09:09, 10:10, 12:12, 13:13, 14:14, 15:15, 16:16, 17:17, 18:18, 19:19, 20:20, 21:21, 23:23,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure heres a Python program that categorizes and print... View full answer

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 Programming Questions!