Homework Assignment 2 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 90, problems 39, 41, 42. In each of these problems, the code should ask inputs from the user, and display the output. To submit your assignment, type 20210submit. Be sure your files are in the hw2 directory in your acms20210hw directory. These exercises should be named in the following way before submission: FILES: ex2-39.cpp ex2-41.cpp ex2-42.cpp DUE: Friday Feb 11, 2011 at 08:00am You could find sample codes in http://www.nd.edu/~yzhang10/20210/codes/Chapter2/ex2.cpp http://www.nd.edu/~yzhang10/20210/codes/Chapter2/ex3.cpp 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. The link will bring up a web page with a list of the files and clicking on one of them will get you a code file which is a correct answer to the corresponding problem. 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 Feb 11. I will collect them in class on Feb 11. Page 101, 1, 2, 3, 4, 5, 6, 7, 8. Page 108, 1, 2, 3, 4, 5, 6, 7.