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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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 41 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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply