![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 06.04.2021 01:20 jrfranckowiak
You work for a small company that exports artisan chocolate. Although you measure your products in kilograms, you often get orders in both pounds and ounces. You have decided that rather than have to look up conversions all the time, you could use Python code to take inputs to make conversions between the different units of measurement.
You will write three blocks of code. The first will convert kilograms to pounds and ounces. The second will convert pounds to kilograms and ounces. The third will convert ounces to kilograms and pounds.
The conversions are as follows:
1 kilogram = 35.274 ounces
1 kilogram = 2.20462 pounds
1 pound = 0.453592 kilograms
1 pound = 16 ounces
1 ounce = 0.0283 kilograms
1 ounce = 0.0625 pounds
For the purposes of this activity the template for a function has been provided. You have not yet covered functions in the course, but they are a way of reusing code. Like a Python script, a function can have zero or more parameters. In the code window you will see three functions defined as def convert_kg(value):, def convert_pounds(value):, and def convert_ounces(value):. Each function will have a block showing you where to place your code.
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 21.06.2019 18:50
Using the artofstat website, run a permutation test to see if there is a difference in the mean amount of time spent on emails per day between in state and out of state students. (make sure to generate 10,000 permutations.) in state students: 2 3 3 6 2 1 1 5 3 2.5 out of state students: 1 2 2 1 2 1 4 3 9 1 10 1 3 what is the p-value?
Answers: 3
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 00:30
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies.pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 12:10
2. fabulously fit offers memberships for$35 per month plus a $50 enrollmentfee. the fitness studio offersmemberships for $40 per month plus a$35 enrollment fee. in how many monthswill the fitness clubs cost the same? what will the cost be?
Answers: 1
You know the right answer?
You work for a small company that exports artisan chocolate. Although you measure your products in k...
Questions
![question](/tpl/images/cats/es.png)
Spanish, 03.08.2019 11:30
![question](/tpl/images/cats/mat.png)
Mathematics, 03.08.2019 11:30
![question](/tpl/images/cats/obshestvoznanie.png)
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 03.08.2019 11:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/en.png)
English, 03.08.2019 11:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/istoriya.png)
History, 03.08.2019 11:30
![question](/tpl/images/cats/mat.png)
Mathematics, 03.08.2019 11:30
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/biologiya.png)
Biology, 03.08.2019 11:30
![question](/tpl/images/cats/istoriya.png)
History, 03.08.2019 11:30
![question](/tpl/images/cats/biologiya.png)
Biology, 03.08.2019 11:30
![question](/tpl/images/cats/fr.png)
![question](/tpl/images/cats/health.png)
Health, 03.08.2019 11:30
![question](/tpl/images/cats/mat.png)
Mathematics, 03.08.2019 11:30
![question](/tpl/images/cats/mat.png)
Mathematics, 03.08.2019 11:30
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 03.08.2019 11:30