A jiffy is the scientific name for 1/100th of a second. Define a function named jiffies_to_seconds...
Fantastic news! We've Found the answer you've been seeking!
Question:
![A](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6513dc3772d74_1695800367874.jpg)
![LAB ACTIVITY 5.17.1: LAB: A jiffy 1 # Define your function here 2 def jiffies_to_seconds(user_jiffies): 3 9](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6513dc4b3ca6f_1695800388399.jpg)
![Program errors displayed here Traceback (most recent call last): File](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2023/09/6513dc5bd8c65_1695800405262.jpg)
Transcribed Image Text:
A "jiffy" is the scientific name for 1/100th of a second. Define a function named jiffies_to_seconds that takes the number of "jiffies" as a parameter, and returns the number of seconds. Then, write a main program that reads the number of jiffies (float) as an input, calls function jiffies_to_seconds() with the input as argument, and outputs the number of seconds. Output each floating-point value with three digits after the decimal point, which can be achieved as follows: print (f' {your_value:.3f}') Ex: If the input is: 15.25 the output is: 0.152 The program must define and call the following function: def jiffies_to_seconds (user_jiffies) Activate Windows Go to Settings to activate Windows. LAB ACTIVITY 5.17.1: LAB: A jiffy 1 # Define your function here 2 def jiffies_to_seconds(user_jiffies): 3 9 10 11 12 13 14 user_jiffies = user_jeffies/100 return user_jiffies 5 6 7 8 if __name_____ ' __main__': #Type your code here. Your code must call the function. float(input()) print(jiffies_to_seconds(user_jiffies)) user_jiffies main.py = 0/10 Load default template... Program errors displayed here Traceback (most recent call last): File "main.py", line 12, in <module> print (jiffies_to_seconds (user_jiffies)) File "main.py", line 3, in jiffies_to_seconds ser_jeffies/100 user_jiffies = user NameError: name 'user_jeffies' is not defined A "jiffy" is the scientific name for 1/100th of a second. Define a function named jiffies_to_seconds that takes the number of "jiffies" as a parameter, and returns the number of seconds. Then, write a main program that reads the number of jiffies (float) as an input, calls function jiffies_to_seconds() with the input as argument, and outputs the number of seconds. Output each floating-point value with three digits after the decimal point, which can be achieved as follows: print (f' {your_value:.3f}') Ex: If the input is: 15.25 the output is: 0.152 The program must define and call the following function: def jiffies_to_seconds (user_jiffies) Activate Windows Go to Settings to activate Windows. LAB ACTIVITY 5.17.1: LAB: A jiffy 1 # Define your function here 2 def jiffies_to_seconds(user_jiffies): 3 9 10 11 12 13 14 user_jiffies = user_jeffies/100 return user_jiffies 5 6 7 8 if __name_____ ' __main__': #Type your code here. Your code must call the function. float(input()) print(jiffies_to_seconds(user_jiffies)) user_jiffies main.py = 0/10 Load default template... Program errors displayed here Traceback (most recent call last): File "main.py", line 12, in <module> print (jiffies_to_seconds (user_jiffies)) File "main.py", line 3, in jiffies_to_seconds ser_jeffies/100 user_jiffies = user NameError: name 'user_jeffies' is not defined
Expert Answer:
Answer rating: 100% (QA)
It looks like you have a syntax error in your code The ... View the full answer
Related Book For
Accounting Information Systems
ISBN: 978-0132552622
12th edition
Authors: Marshall B. Romney, Paul J. Steinbart
Posted Date:
Students also viewed these programming questions
-
Provide the formula to calculate the Price of the following bond when coupons are paid semi-annually (every 6 month). 540Exam Final200BU.xls B 1 Begin Year 1/1/2020 2 End Year 12/31/2050 3 Coupon...
-
What are some of the key challenges that companies might face when expanding into international markets?
-
1. Write the array for each of the following: a. complete 10-point plane configuration b. complete 12-line plane configuration (5 points) (5 points) c. complete 5-point space configuration (10...
-
A study anticipates that subjects treated with drug A will have substantial improvement in their neuropathy symptoms. If the study measures neuropathy symptoms as present or not present, what level...
-
If the rate on one-year Treasury strips currently is 6 percent, what is the repayment probability for each of the following two securities? Assume that if the loan is defaulted, no payments are...
-
In Exercises 124, mark each statement True or False (T/F). Justify each answer. If A is m x n, then it will require n slack variables to change Ax b into a system of linear equations.
-
A parent company owns a controlling interest in a subsidiary whose stock has a book value of $31 per share. At the end of the current year, the subsidiary issues new shares entirely to outside...
-
Stabler Co.s projected March 31, 2011, balance sheet follows. Additional information about the company is as follows: ¢ Expected sales for April and May are $240,000 and $260,000, respectively....
-
The comparative statements of financial position for the years 2019 and 2020 and a summarised income statement for the year ended 30 June 2020 are shown below (Ignore GST and Tax): 2020(8'000)...
-
The determinant of a 3 3 matrix A is defined as follows. Evaluate the determinant using the method of diagonals. a12 a13 fA 3 | 21 zz |, then | 2 . a11 a13 a12 a21 a22 |1 2 (2 + 122331 + az12) ...
-
Given the ability to make one of the following happen, which one will you choose (1) increase the country's production output as measured by higher GDP, (2) eliminate unemployment, or (3) lower the...
-
Adidas-Consumer Goods STEP ONE: MISSION: Mission statement core message that guides and influences your marketing strategy. Why is this company in business and what is the purpose of their...
-
You have been operating and growing your golf club for the last six (6) years. You are happy with the fact that all revenue streams (and as a result your share value) have continued to increase as...
-
Given the following HTML, write a simple bit of JavaScript code that will DELETE ALL OF THE TAGS ON THE PAGE. Quiz I'm a Heading I'm a paragraph I'm special I'm also a paragraph Footer! HINT: You'll...
-
Your company has been quite successful in sending employees on international assignments. As the HR Manager responsible for selecting such employees, present a report to the management of your...
-
You will be looking at a particular market in the economy. I will assign the market to you arbitrarily. Please look for at the end of this document to identify which market you will be responsible...
-
Consider an economy extending over two periods, t = 0,1 under uncertainty. There are two agents in the economy, denoted by h = 1, 2 and two states of nature in the second period, denoted by s = 1, 2...
-
Perform the operation by first converting the numerator and denominator to scientific notation. Write the answer in scientific notation. 7,200,00/0.000009
-
The BusyB Company wants to store data about employee skills. Each employee may possess one or more specific skills and several employees may have the same skill. Include the following facts in the...
-
Alden, Inc. has hired you to review its internal controls for the purchase, receipt, storage, and issuance of raw materials. You observed the following: Raw materials, which consist mainly of...
-
Some companies have eliminated the collection and reporting of detailed analyses on direct labor costs broken down by various activities. Instead, first-line supervisors are responsible for...
-
What are the three ways that ratios can be expressed? AppendixLO1
-
What is the purpose of profitability ratios? Explain earnings per share and the price-earnings ratio. AppendixLO1
-
What does a statement of stockholders' equity show? AppendixLO1
![Mobile App Logo](https://dsd5zvtm8ll6.cloudfront.net/includes/images/mobile/finalLogo.png)
Study smarter with the SolutionInn App