Page 1 of 1

For each of the problems below you are to consider making a function to solve the problem. As before, state the purpose

Posted: Fri Jul 01, 2022 5:37 am
by answerhappygod
For Each Of The Problems Below You Are To Consider Making A Function To Solve The Problem As Before State The Purpose 1
For Each Of The Problems Below You Are To Consider Making A Function To Solve The Problem As Before State The Purpose 1 (63.57 KiB) Viewed 42 times
For each of the problems below you are to consider making a function to solve the problem. As before, state the purpose of the function in your own words. Next specify input that is needed for the function to complete the task, and state what input should be passed to the function as parameters and what would be acquired inside the function using the input function. Specify the expected output and state if the output will be returned to the function call or be sent to the monitor. Finally give the step by step process that will obtain the output from the input (the algorithm). In addition to these 4 items also specify test data that can be used for each function. Remember to describe your steps in enough detail so someone other than you could follow your algorithm and solve the problem. Also do not write any actual code. Problem 1: Describe a function that will accept change needed from a purchase as a whole number from 0 to 99 inclusive (you do not have to check the validity of this value). The function should determine the number of quarters, number of dimes, number of nickels, and number of pennies needed to make the change if you want to minimize the total number of coins used. The number of each coin needed should be sent back to the function call.