For this assignment you will write two programs paycheck.c and array_functions.c.
You will need to throughly review the instucions for each program to understand the requirements.
I HIGHLY recommend using the make file commands below to run tests with input to save yourself a bunch of repeated typing. After all, computer are great a repitious task, so take advantage of that! :)
You can run tests for each of the programs using the following commands respectively:
make gh-test-paycheck
make gh-test-array-functions
If the tests don’t pass or there are compiler errors, review the output and then re-run the tests above until you are passing the testing locally.
TO ASSIST WITH TESTING, EACH TESTS HAS AN OUTPUT EXAMPLE PRESENTED AS IT WERE TYPED INTO THE TERMINAL IN EACH TESTS .desc
FILE
When you are confident your programs function correctly submit your work by saving your code and then using git to add the C files, commit, and pushing your changes. You can add all the files on one line if you want, like this:
git add paycheck.c array_functions.c
git commit -m "This is an example commit message"
git push
You can also add them one at a time (with four individual git add commands). You don’t need to push after each commit, so if you add the files separately, you only need ONE push.
Once you have pushed, check GitHub to see the results of testing your code. If any of your programs do not pass the tests, you may make changes and submit again. To submit again, simply add the file(s) that you changed, commit, and push again.
These assignments are worth a total of 20 points and distributed as follows:
For full credit your code must pass all the tests and you must meet all the organizational and functional on the assignment page.
calculate_pay()
function implementationcalculate_pay()
calculate_pay()
has correct function name and parametersmain()
accepts user inputFor full credit you must pass all the tests and follow all the requirements on the assignment page. Your functions must not print anything out, the only printing must be done in main(). You will also be graded on appropriate usage of function prototypes.
average()