Question: casure a year. But let's measure it better! Write a at), and breaks that value in terms of: We all know that $25.600 minutes is
casure a year. But let's measure it better! Write a at), and breaks that value in terms of: We all know that $25.600 minutes is how we measure, measure a year. Du program that prompts the user for a number of minutes la float and breaks the Years Days Hours Minutes Seconds This is called a Sis called an optimization problem. We could turn any input into all seconds and that's technicany correct it does break down the original time. But it's not what we're going for here, instead, WC break down the most possible years, months, etc. Because the user enters a float for minutes, remember to do the conversion to seconds correct minutes is one minute and 30 minutes (not one minute and 50 seconds) Before you begin coding - write test cases! In the comments at the top of your Python file, list 3 test cases that you came up with which you devisca before you began writing your code). Helpful Hints Python's math library has a floor function should you need it, which will tell you the largest integer value less than or equal to a number. You need to import the math library to use it, so you need two steps to make this part happen: o At the top of your .py file, include the line import math When you need to know the floor of a number, use the function math.floor, as in my variable = math.floor(10.85), which would store a plain ol' 10 in the variable my_variable. AMAZING points: These final two points may be awarded if you've completed the rest of the assignment perfectly and blown us away with... Do not use any literals in your main function. Any values that need to be saved are in constant variables, initialized at the top of your program, above main. Use only one print statement for the final output, but without going over 80 column-width in your Python code. Look at the very bottom of the style guide for an example. Example Output It.py How many minutes to measure, measure? 1445.1 That is... @ years. 1 days @ hours 5 minutes, and 6 seconds! >>>>
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
