Answer:
coupons = int(input("Enter the number of coupons you win: "))
candy_bars = int(coupons / 10)
gumballs = coupons % 10
print("Candy bars: " + str(candy_bars) + ", Gumballs: " + str(gumballs))
Explanation:
*The code is in Python.
Ask the user to enter the number of coupons
Calculate the number of candy bars, divide the coupons by 10 and typecst the result to int
Calculate the number of gumballs, use the modulo to find the remainder
Print the values
Answer:
Agree upon the problem Brainstorm possible
Explanation:
Answer:
See explanation
Explanation:
Given
The above program that subtracts two numbers and returns the result
Required
Modify the source code to run perfectly
When the given program is tested, it displays
<em>4 minus 10 equals -6
</em>
<em></em>
<em>Which is different from the expected output of</em>
<em>10 minus 4 equals 6
</em>
<em></em>
Modify
<em>solution = minuend-subtrahend
</em>
<em>to</em>
<em>solution = subtrahend - minuend</em>
<em></em>
And that does it.
Answer: Where the guide lines?
Explanation: I’ll help but where the guidelines?
Answer:
it was bred for big-game hunting. the bred is known for its bravery and is willingness to protect its human companion.