1 Write a function that calculates the volume of a sphere with radius r for only values 0 return 0

1) Write a function that calculates the volume of a sphere with radius r for only values > 0, return 0 otherwise . V=4/3
? r^3
2)
Write a function that finds you weight in stones using the formula.
mstone = mkgx2.2/14
3) Write a function that takes some monetary amount from the user in dollars, and then display exact changes for this amount using the minimum number of coins. For example, $0.97 shows 3 quarters, 2 dimes, and 2 pennies.
Output:
change_it(97)
The change for 97 cents is:
3 quarters
2 dimes
2 pennies
Write an function to calculate both Ohm’s Law and Power transferred. The function takes i and r as inputs and prints the results (see output below). Calculate only if both i and r are > 0.
FORMULA

i is current, v is voltage, r is resistance, p is power
p = i * v
# power = current * volatage

v = i * r
# voltage = current * resistance
def ohms_law(i, r):


i is current

r is resistance


# check if both i and r are greater than 0

# calculate v and p

# PRINT v and p
omhs_law(5, 5)
v = 25 p = 125
omhs_law(-5, -5)
0

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

1) Identify a health disparity in an environmental health issue.

1) Identify a health disparity in an environmental health issue. (e.g. race and access to safe drinking water, higher exposure to pesticides in farm workers). If you are looking at Above the Fold every day, you should find plenty of good examples. It may be best to pick something that

Oppression and Genocide in Brave New World and The Gulag Archipelago

The literary analysis essay should compare the works The Gulag Archipelago by Alexander Solzhenitsyn and Brave New World by Aldous Huxley from multiple perspectives including overall tone, word choice, connotations, motifs, point of view, character development, and context. Oppression and Genocide must be the overarching theme, and the essay should

In Chapter 2 you learned about “achievement gaps” and the

In Chapter 2 you learned about “achievement gaps” and the role of standardized tests in federal funding of public schools. Instead of standardized tests determining public school funding, what other evaluation methods could the federal government employ to fund public schools so the achievement gaps decrease. Post your ideas on

(In text citation, references) P. R. is a 24-year-old male

(In text citation, references) P. R. is a 24-year-old male who presents to urgent care with complaints of rectal bleeding and weakness. Five days ago he noticed bright red blood in his stools.  His daily bowel movements have increased to five or six with significant diarrhea.  He states that urges

2[Note: To complete this template, replace the bracketed text with your own content. Remove this note before you submit your paper.] Final Project: [Name of

2 [Note: To complete this template, replace the bracketed text with your own content. Remove this note before you submit your paper.] Final Project: [Name of Project] [Name] Department of Psychology PSY-540-[Section Number] Cognitive Processes [Instructor Name] [Date] Problem Statement Contemporary Problem [Insert text.] Selected Area [Insert text.] Performance Issues

250 words Readings Use your Diversity, Oppression, and Social Functioning

250 words Readings Use your Diversity, Oppression, and Social Functioning text to read the following: Chapter 1, “Framework for Practice With Diverse and Oppressed Clients,” pages 1–15.  This chapter covers theory for practice, ecological framework for practice, diversity and strengths perspective, value base for practice, and the assessment and intervention

The Responsible Consulting paper Must be four to five double-spaced pages

Premium Paper Help is a professional writing service that provides original papers. Our products include academic papers of varying complexity and other personalized services, along with research materials for assistance purposes only. All the materials from our website should be used with proper references.

Complete an article analysis

Search the GCU Library and find one new health care article that uses quantitative research. Do not use an article from a previous assignment, or that appears in the Topic Materials or textbook. Complete an article analysis and ethics evaluation of the research using the “Article Analysis and Evaluation of

Nursing-Doctorate level Discussion questions. 2 pages for each question. Please

Nursing-Doctorate level Discussion questions. 2 pages for each question. Please present with at least 2 references with answer to each question. References must be within 5 years. Absolutely plagiarism free.  These are 2 separate questions– Each to be presented separately. It can be on one attachment or separately.  Question #1.

Initial post Pick one of these hematological disorders. (Anemia, Sickle

   Initial post Pick one of these hematological disorders. (Anemia, Sickle Cell Disease, Immunohemolytic Anemia, Aplastic Anemia, Hereditary Hemochromatosis) For this disorder, identify and describe three treatment strategies for the disorder. What challenges could arise in carrying out these strategies and providing care to the patient? Reply Post What interventions

Respond to at least two other student posts Cory :

 Respond to at least two other student posts  Cory :  The topic I have chosen is a quote from Bali Padda chief operating officer of the LEGO Group, who said, “Strategy is only as good as the execution behind it.” I think formulation and execution are related I also think

Overview Business leaders are often faced with situations that require

  Overview Business leaders are often faced with situations that require swift but responsible decisions. You’ve learned how critical thinking is more than simply evaluating the pros and cons of a situation. It is a method that engages broad thinking abilities that include brainstorming, data analysis, creativity, collaboration, and reflection.

Homelessness among US veteran community

The purpose of this assignment is to integrate theory and advanced concepts in macro/micro practice. The focus is intended to cover course readings, issues informed by current events in the environment and your own research. Answer each section of the question and be sure to integrate readings from the bibliography

Discussion – Common Core Standards Discussion Topic The Common Core

   Discussion – Common Core Standards Discussion Topic The Common Core Standards were implemented in many states; however, in other states they were met with resistance from parents and educators. Although these Standards specifically address K-12 education, they still have implications on young children and early childhood education. For this

Benchmark-

  PLEASE READ CAREFULLY AND FOLLOW EVERY INSTRUCTION. USE RUBRIC TO ANSWER THE ASSIGMENT.. SEE DOCUMENTS ATTACHED BELLOW TO ANSWER THE ASSIGMENT                                                                             Details: In this assignment, you will be completing a health assessment on an older adult. To complete this assignment, do the following: Perform a health history on