Homework Assignment 8 Instructions: You must use the names listed below for each program. This homework will count towards your grade. It is very important that you follow the instructions very carefully. Homework: page 337, problem 9; page 339, problem 22. Note: there is an error for problem 22 in page 339, the i+j should be the exponential of (-1). It is NOT (-1)*i+j !!! And there is an error for problem 9 in page 337, the function prototype should be double row_ave(double x[][NCOLS], int row); For the problem 9, use the following text file as the input data file: http://www.nd.edu/~yzhang10/20210/codes/Chapter7_2011/power1.dat To submit your assignment, type 20210submit. Be sure your files are in the hw8 directory in your acms20210hw directory. These exercises should be named in the following way before submission: FILES: ex8-9.cpp ex8-22.cpp DUE: Friday April 15, 2011 at 08:00am The data file power1.dat must also be copied from your hw8 directory to the homework 8 submission directory. Please use the following command under your hw8 directory in your acms20210hw directory: cp power1.dat /afs/nd.edu/coursesp.11/acms/acms20210.01/assignments/yourNetID/homework8 Important: REPLACE the "yourNetID" in the above command by your NetID !!! The homework assignment folder will be locked after the deadline and you will not be able to submit your homework after then. You may re-submit your homework at any time before the deadline: the old files will be replaced by the new files. !!! You should try hard to make your program compile. You will not receive a perfect score if your program fails to compile!!! Finally, use 20210submitted to check that the homework is correctly submitted. After the homework is graded, you can check your grades. To check your score, type 20210score. To see the graders comments, type 20210hw. To see the answers for this assignment follow the link anytime after it becomes available. If you wish you can copy it, compile it and run it. The following problems are paper-written problems. Please finish them and submit to me on Apr 15. I will collect them in class on Apr 15. page 305, problems 1, 2, 3, 4, 5, 6. page 308, problems 1, 2, 3, 4. page 336, problems 1, 2, 3, 4.