Question: Code has already been provided to define a function named divideBySeven that accepts a single input variable number that is any positive number. Add commands
Code has already been provided to define a function named divideBySeven that accepts a single input variable number that is any positive number. Add commands to use a while loop to repeatedly divide this number by until the value remaining is less than Your function should assign values to the two output variables as follows:
Assign the final value of the number to the output variable whatsLeft.
Count the number of divisions required and assign the result to the output variable divisionCount with unsigned bit integer datatype.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
