The fix to the problem in the code is as follows:
def sum(a, b):
total = a + b
print(total)
sum(1, 0)
<h3>How to determine the problem and the fix to the problem?</h3>
The code is given as:
def sum(a, b):
total = a + b
print(total)
sum(total, a)
sum(1, 0)
When the above code is run, one or both of the following would occur
- An infinite loop because the program cannot end the recursion
- An error when the maximum memory is used
The problem in the code is that, the recursive function do not have a condition to end itself.
The fix to the problem is to remove the recursive definition.
So, we have the fixed code to be
def sum(a, b):
total = a + b
print(total)
sum(1, 0)
Read more about python programs at:
brainly.com/question/26497128
#SPJ1
Answer: five types of prewriting are outlining, brainstorming, freewriting, asking question and drawing
Explanation:
BRAINSTORMING- THIS MAKING A LIST OF THINGS THAT COMES TO MIND WITHOUT CONSIDERING OTHERS IDEA.
FREEWRITING- ITS WHEN YOU NOTE DOWN IDEA THAT POPS UP IN YOUR MIND ON A PIECE OF PAPER.
Asking Questions- This assist in gathering of facts or opinions
Outlining- this is used to organize your written ideas about a topic into a logical order.
drawing- this is the art of expression through images on a surface
"A ConstraintLayout is a ViewGroup allows you to position and size widgets in a flexible way. Note: ConstraintLayout is available as a support library that you can use on Android systems starting with API level 9 (Gingerbread)"
The answer is B) bill customers for the amount they purchased, but record lower purchases in the ledger and pocket the money. A fraud is one of two types of mistake in the recording process which done with a deliberate intention. The account receivable department responsible for recording sales transaction and billing the customers. Thus, the account receivable fraud can be committed in this process.