Question
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
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). A The function 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started