Question: Show me the steps ( C + + ) to solve / / Given two integers ( onHand and consume ) that represent the amount

Show me the steps(C++) to solve // 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.
//
// For example, if you have 7 eggs (onHand) and use 2 egg per day(consume),
// determine when you expect to run out of eggs (3 days). Return the
// number representing when the on-hand amount reaches 0 without
// consuming more than is available.

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!