README 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. This assignment asks you to compute several properties of an array of
  2. integers.
  3. You should modify only the file answer01.c
  4. You can add additional functions in answer01.c.
  5. You can add new functions. This is true for all assignments.
  6. Some parts of the program have already been written for you and you
  7. should not modify those parts.
  8. This assignment includes many pieces of useful information and you
  9. will learn these pieces in the coming weeks. Do not worry if you do
  10. not understand everything in the first week. Focus on writing the
  11. functions in answer01.c. If you have taken the prerequisite CS 159, you
  12. should have no problem filling the code for these functions.
  13. If you need help, please visit the intructors' or the teaching
  14. assistants' office hours.
  15. =================================================================
  16. This assignment asks you to
  17. * add all elements in an array of integers
  18. * determine whether any element in the array is a negative number
  19. * determine whether the elements' values are increasing
  20. This program has the following files
  21. pa01.h a header file
  22. pa01.c a C file for main
  23. answer01.c a C file
  24. inputgen.c a C file used to generate the test cases
  25. Makefile
  26. You need to worry about answer01.c only. You are certainly welcome to
  27. read the other files. Do not worry if you do not understand the other
  28. files yet.
  29. To execute and to test your program, type
  30. make
  31. in Linux terminal.
  32. You will receive the score of your program.
  33. You can use
  34. make -s
  35. to print fewer messages.
  36. If you have not changed the program since that last time you type
  37. make and you type make again, you will get this message
  38. make: `pa01' is up to date.
  39. Please type
  40. make clean
  41. then
  42. make
  43. ================================================================
  44. After you finish this program, upload answer01.c to Blackboard and
  45. submit it.