Requirements: 1. As per usual, be sure to leave some comments (in your code) on how certain complex/ unique parts of you

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

Requirements: 1. As per usual, be sure to leave some comments (in your code) on how certain complex/ unique parts of you

Post by answerhappygod »

Requirements 1 As Per Usual Be Sure To Leave Some Comments In Your Code On How Certain Complex Unique Parts Of You 1
Requirements 1 As Per Usual Be Sure To Leave Some Comments In Your Code On How Certain Complex Unique Parts Of You 1 (278.91 KiB) Viewed 42 times
Requirements: 1. As per usual, be sure to leave some comments (in your code) on how certain complex/ unique parts of your program work. 2. Be sure to follow the instructions outlined for each function EXACTLY as described. This includes small things such as making sure your functions are defined with the right names (and are spelled correctly), using the appropriate/ necessary data type for your parameter(s)/ return type, etc. 3. Both functions MUST exist in the same source file. DO NOT create separate files for each function. 4. Your final solution should NOT have any print statements anywhere in the file. You can of course utilize print statements to test your code/numbers as your developing this program, just be sure to delete them once your done. 5. DO NOT use the '...' operator anywhere in your functions' parameter list. Tips: 1. Your main method does NOT need to have any code in it. Ideally, you would use it for testing purposes to see if the return results of different function calls (with varying arguments) works out as expected What's important for this assignment is that all the function definitions you create are formatted correctly and work as expected. o I also recommend you create a "printArray" function to help you examine your arrays when testing/debugging your code 2. This assignment doesn't require the use of multi-dimensional arrays (nor should it) 3. Finish the "is Number InArray" function first, as that is really easy to implement. 4. As for the "unionArrays" function: o Use for-each loops . I also recommend you establish a variable beforehand to keep track of the union array's index as more elements are assigned into it. Think back to how loops and variables work and how you can use them to your advantage here. o o You can assume that the arguments will never have element value(s) of zero. As stated in the guidelines above, your union array doesn't need to be of perfect length, so when you're defining it, have the size declaration (of your union array) just be based of the sum of the two array parameters' lengths ▪ IE. int unionArray[] = new int [ <length_1>+<length_2> ];
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply