A digital wall clock displays the time in a 24-hour clock format. From 00:00 to 23:59,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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, 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,
Expert Answer:
Answer rating: 100% (QA)
Sure heres a Python program that categorizes and print... View the full answer
Related Book For
Modern Classical Physics Optics Fluids Plasmas Elasticity Relativity And Statistical Physics
ISBN: 9780691159027
1st Edition
Authors: Kip S. Thorne, Roger D. Blandford
Posted Date:
Students also viewed these programming questions
-
Based on the information in the table below, calculate the break-even points in terms of sales value. Fixed Factory Overheads Cost 50,000 Fixed Selling Overheads Cost 15,000 Variable Manufacturing...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
The City of Amarillo is authorized to issue $8,000,000, 3 percent regular serial bonds in 2017 for the construction of a new exit off the interstate highway within city limits. The bonds mature in...
-
For the truck of Sample Prob. 16.1, determine the distance through which the truck will skid if (a) The rear-wheel brakes fail to operate, (b) The front-wheel brakes fail to operate.
-
The concept of thermal resistance described in Problem 8 can be used to find the temperature distribution in the at square plate shown in Figure P9(a). Figure P9 The plates edges are insulated so...
-
The Arrow-Pratt relative risk aversion coefficient is \[\mu(x)=\frac{x U^{\prime \prime}(x)}{U^{\prime}(x)} .\] Show that the utility functions $U(x)=\ln x$ and $U(x)=\gamma x^{\gamma}$ have constant...
-
Slick Pads is a company that manufactures laptop notebook computers. The company is considering adding its own line of computer printers as well. It has considered the implications from the marketing...
-
what is time complexity of the following code? void function ( ) { int sum = 0 ; for ( int i = 1 ; i < = 1 0 0 ; i + + ) { int x = i; while ( x ! = 0 ) { sum + = x; x / = 2 ; } } printf ( " % d " ,...
-
Three industrial sites are considered for locating manufacturing plants. The plants send their supplies to three customers. The supply at the plants, the demand at the customers, and the unit...
-
Explain type conversion for class type to another class type with example.
-
Jensen's opening statement: "In most industrialized nations today, economists, management scholars, policy makers, corporate executives, and special interest groups are engaged in a high-stakes...
-
A company invests $500,000 at the beginning of the year. It withdraws $45,000 at the beginning of the second quarter, and $55,000 at the beginning of the third quarter. The company invested an...
-
Explain the payback period statistic. What is the acceptance benchmark when using the payback period statistic
-
A car dealership advertised a sport utility vehicle for sale at $35,000. The same vehicle could also be leased for 5 years at $375 per month based on a $9000 down payment and a residual value of...
-
1.Explain how differences in allocations between the risk-free security and the market portfolio can determine the level of market risk.
-
Which of thefollowing is not a strategy to manage service capacity or cope withservice capacity limitations? Multiple Choice hiring extra workers subcontracting part-time workers storing inventories...
-
At Glass Company, materials are added at the beginning of the process and conversion costs are added uniformly. Work in process, beginning: Number of units Transferred - in costs Direct materials...
-
The longest radio-telescope separation available in 2016 is that between telescopes on Earths surface and a 10-m diameter radio telescope in the Russian RadioAstron satellite, which was launched into...
-
Derive Eqs. (10.49). F1GW m-2, A 10- / m-, K105 J-1/2, KA 1cm-. (10.49)
-
(a) Show that for shot noise, y(t) = i F(t t i ), the spectral density S y (f ) is given by Eq. (6.68b). Show that the relaxation time appearing in the correlation function is approximately the...
-
\(X\) is the number of bits in error in the next four bits transmitted. What is the expected value of the square of the number of bits in error? Now, \(h(X)=X^{2}\). Therefore, \[ \begin{aligned}...
-
In Example 4.1, \(X\) is the current measured in milliamperes. What is the expected value of power when the resistance is 100 ohms?
-
Correlation between height and weight for players on the 2014 Brazil World Cup Team, using data from all 23 players on the roster. State whether the quantity described is a parameter or a statistic...
Study smarter with the SolutionInn App