Question: Please use Python 3.8: Design a function called brightness_modifier that takes a single integer value as an argument. The integer value represents the display brightness
Please use Python 3.8:

Design a function called brightness_modifier that takes a single integer value as an argument. The integer value represents the display brightness setting on a mobile phone, and is either 0, 1, 2, or 3 (0 means the screen is off, up to 3 which means full brightness). The function returns a floating-point value between 0.5 and 1.0 representing the modifier that the current brightness level has on the lifetime of the battery for the device. For example: O brightness means the phone will last the maximum battery lifetime (i.e. a modifier of 1.0) 1 brightness means the battery will last 90% of maximum battery lifetime 2 brightness means the battery will last 75% of maximum battery lifetime 3 brightness means the battery will last 50% of maximum lifetime
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
