Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This needs to be a python function Question #1: You are tracking the amount of time it takes for a laser to travel through different

This needs to be a python function

image text in transcribed

Question #1: You are tracking the amount of time it takes for a laser to travel through different liquids to hit a target. While this appears to be 'instant' in human terms, it is measurable. Unfortunately your lab assistants have been using three different scales for the past six months: millisecond, Jity and picoCentury. 1 picoCentury JIE millisecond = = = TI/1000 seconds 1/60 of a second 0.001 seconds Write a program named examiql.py that includes a commented header (including your name, the name of the program and a short description of it's functionality) and comments for each section. Your examiqi.py program will contain a single function named giB () that accepts no arguments and returns no values. The 915) function will prompt the user for the starting and ending milli Second () values, then using a for loop and incrementing by 125 milliseconds, it computes the range of conversions to Jiffy (J) and picoCentury (pc). Your function should display each ms, J and pc value with these specific formats. millisecond (ms) Jiffy (J) picoCentury (pc) - zero decimals, comma thousands separator - Fixed at 2 decimal places - precision of 7 Example output: >>> 9180 This program converts measurements in milli Seconds (5) to Jiffy (1) and picoCenturies (PC). Starting milliseconds: 3511 >>> 91B Ending milliseconds: 4886 This program converts measurements in milli Seconds (m5) to Jiffy (J) and picoCenturies (C). JPC Starting milliseconds: 9410 3,511 210.66 1117.586 3.636 Ending milliseconds: 10660 218.16 1157.375 3,761 225.66 1197.163 3,886 233.16 1236.952 pc 4.911 249.66 1276.741 4,136 248.16 1216.53 9,410 564.60 2995.296 572.19 4,261 255.66 9,535 1356. 318 3035.085 4.3.86 263.16 1396. 127 9.660 579.68 3074.874 279.66 4.511 1435.896 587.19 9.785 3114.662 4.636 278.16 1475.685 9,91@ 594.69 3154.451 4.761 285.66 1515.473 10.935 3194.24 4.886 293.16 1555.262 10,160 699.68 3234.028 10.285 617.19 3273.817 10,410 624.62 3313.696 10,535 632.12 3353.395

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions