Advertisement
Guest User

Untitled

a guest
Dec 10th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. Understand and create functions/methods
  2.  
  3. Create well-structured solution to implement these requirements. Be sure your solution can be used in general by other programs (provide functions that are useful to other programs that need to implement similar requirements).
  4.  
  5. Your program will work with one-dimensional arrays of ints. It must be able to
  6. 1) calculate and return the int sum of the numbers in an int array, and
  7. 2) determine if two int arrays add up to the same total and return true or false.
  8. Write two functions that will do these two things; these function definitions are all you have to provide, not the rest of the program. You can give the functions whatever names as you want; they must both have correct types for their parameter(s) and return values. Assume that these functions will be called in main (that is, they are static, not instance methods).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement