Question: Given two integers ( onHand and consume ) that represent the amount of an on - hand resource ( onHand ) and the amount of

Given two integers (onHand and consume) that represent the amount of
an on - hand resource(onHand) and the amount of the help that is
consumed per cycle (think a time period). Determine how
many cycles (time periods) are before the on-hand amount is empty.
must have
- Submission must contain detailed comments, using appropriate terminology to explain code solutions.
- use one return statement.
- only use for loop

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!