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 (44.14 KiB) Viewed 37 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 2: Describe a function that would accept 7 values from the function call and determine the minimum and maximum of those 7 values. Design this function without using the idea of arrays or calling any other functions. Send back to the function call both the minimum and maximum value. You should use no more than 7 comparisons to find the maximum and no more than 7 comparisons to find the minimum. Hint: review finding the minimum value using a loop and think how to use same idea without a loop)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply