Question

Assume you were required to solve a problem using a function with several arguments. You complete...

Assume you were required to solve a problem using a function with several arguments. You complete the problem, but the results don't seem right. What steps would you take to solve the problem? Please explain each step !

0 0
Add a comment Improve this question Transcribed image text
Answer #1

These are the steps required :-

(i) first check whether correct arguments are passed or not. Suppose the logic of function will work on positive numbers and you are passing negative number. So you won't get correct result.

(ii) Check the logic of function.

(iii) Dry run your code for each step in the function.

(iv) Display values  after each statement so that you can notice at which point result is deviating from its actual value.

(v) correctify your statements where logical error exists.

DON'T FORGET TO HIT LIKE.

THANKS BY HEART.

Add a comment
Know the answer?
Add Answer to:
Assume you were required to solve a problem using a function with several arguments. You complete...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1 Transfer Function 600 Point:s Assume you have the Transfer Function below 2s a. What are the ze...

    Please solve all the parts and make neat and clear. 1 Transfer Function 600 Point:s Assume you have the Transfer Function below 2s a. What are the zeroes of the function above? b. What are the poles of the function above? C. What is the gain of the function above? it with a step, compute y). (Don't solve for the partial fraction coefficeints) e. Draw a graph of yit) vs time Just draw the general trend. Assume that y(0) 0...

  • Imagine that you manage to employees who dislike each other and have engage in heated arguments...

    Imagine that you manage to employees who dislike each other and have engage in heated arguments in front of customers. What specific steps could you take following the five-step critical thinking model (observe, interpret, analyze, evaluate, and explain), to resolve the situation?

  • at are asked for LONG PROBLEM: This problem consists of several parts. You must solve for...

    at are asked for LONG PROBLEM: This problem consists of several parts. You must solve for all the results that are answers will be supplied for you. You must show all work to receive any credit. NO WORK NO CREO Points: 5 3) A metal sphere hangs from a string and has 6.5 kg of mass. The sphere has a charge of -4.5 C. A uniform electrie turned on and directed to the right.. Drawn free-body diagram to the right...

  • Please show step by step to solve problem Let's assume you sold short 200 shares of...

    Please show step by step to solve problem Let's assume you sold short 200 shares of common stock at $60 per share. The initial margin is 50%. What would be the maintenance margin if a margin call was made at a stock price of $72?

  • solve this problem by using Binomial approximation and compare the results with answers from Hypergeometric (2...

    solve this problem by using Binomial approximation and compare the results with answers from Hypergeometric (2 Bookmarks) Problem Show all steps: ON Suppose that 50 sites on a patient might contain lesions. A biopsy selects 8 sites randomly (without replacement). What is the minimum number of sites with lesions so that the probability of at least one selected site contains lesions is greater than or equal to 0.95? Rework for greater than or equal to 0.99. Step-by-step solution Step 1...

  • Hi, I'm having trouble solving this problem... Could you please solve it using clear detailed steps...

    Hi, I'm having trouble solving this problem... Could you please solve it using clear detailed steps so that I can better understand how to tackle it next time? Thanks! :) A charge of 100 AHC is at the center of a cube of edge 75.0 cm. No other charges are nearby. (a) Find the total flux through each face of the cube. (b) Find the flux through the whole surface of the cube N m2/c (a) would change O (b)...

  • Fill in the blank with valid integers such that the equations are correct. Assume unsigned values....

    Fill in the blank with valid integers such that the equations are correct. Assume unsigned values. Hint: The 0x prefix is used to denote an hexadecimal number. E.g. 0x8 is equal to 816Hint: The ∧ operator means XOR (a) 0b11101100 & ∼ (0x5 << ________________ ) = 0b11000100 — Express answer in decimal Please explain how this works and which steps to take since I don't know how to solve the problem and would not benefit from just the answer....

  • ANSWER USING PYTHON Write a recursive function that takes 2 sorted lists as arguments and returns...

    ANSWER USING PYTHON Write a recursive function that takes 2 sorted lists as arguments and returns a single, merged sorted list as a result. For example, if the two input lists are [0, 2, 4, 6, 8] and [1, 3, 5, 7, 9], the returned result should be [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]. Remember that you can add lists in Python using the + operator ([0] + [1,2,3] = [0,1,2,3]) and can take slices of...

  • I'm currently working on a problem and I'm stuck at this step --> I need to...

    I'm currently working on a problem and I'm stuck at this step --> I need to get Q to equal 504 from this equation, 0.45V = 0.53V - 0.0592/2 logQ No matter what I try I can't seem to get Q=504 as an answer for that. Please help and explain how you got it! Thank you!! ..I know the first step would be to -0.53 from both sides which gives me -0.08= -0.0592/2 logQ but then I don't know what...

  • Reflect on the past experiences, which required you to make an important decision. What were the...

    Reflect on the past experiences, which required you to make an important decision. What were the skills that you utilized to solve the problem? Was the model for decision-making similar to the one in the course? Explore a recent decision you have made in your work environment. Use the steps of decision making as you reflect on that decision. Would you change anything about that decision? What was right and wrong about the decision you made? Conclude your discussion with...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT