Homework Assignment 4 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. Problems: There are 2 problems in this assignment: Problem 100: Write a simple INTEGER calculator for +, -, *, and / It should, for example, print on the screen "18" if 3 * 6 is entered by the user, print on the screen "2 with a remainder of 3" if 11 / 4 is entered by the user, print on the screen "2" if 8 - 6 is entered by the user, print on the screen "-2 with a remainder -3" if -11 / 4 is entered by the user, etc. You may assume that the user will enter data like this: an integer, some space, an arithmetic operation, some more space and another integer. Of course users may enter integers of their choosing. Problem 200: Write a program to compute a root of the equation x^2 = cos(x) using Newton's method. (Consult your Calculus book if you forgot Newton's formula.) It should ask the user for an initial approximation between 0 and 1, stop the loop when |x^2 - cos(x)| is less than 1e-5, (remember 1e-5 means 10^{-5}) and print the root. To submit your assignment, type 20210submit. Be sure your files are in the hw4 directory in your acms20210hw directory. These exercises should be named in the following way before submission: FILES: ex3-100.cpp ex3-200.cpp DUE: Friday Feb 25, 2011 at 08:00am A sample code which uses the cin.eof( ) can be found in http://www.nd.edu/~yzhang10/20210/codes/Chapter3_2011/chapter3_6.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. If you wish you can copy it, compile it and run it. We do not have paper-written problems this time.