Need some assistance in editing unix scripting files, both of which have been completed but needed to be updated regarding the changes asked for in the question.
On question #1 The first term’s ratio of “Undefined” is not displayed. Division by zero is not tested, so “Divide by zero” error can occur. The second element’s ratio is reported as 0, regardless of the actual ratio. The sequence listed is two elements more than what is requested.
On question #2. The first selection of play runs continuously until all units are exhausted, rather than reporting a result and allowing the user to choose again.