Design and code, on paper, the body of Convert_To_Integer. Review your code carefully and trace it on some examples, but do not enter it into the computer until closed lab. The objective is to have code that works the first time you type it in (except perhaps for typos).
Since two students share a workstation during closed lab, if you want to you may work with a partner on this homework exercise. If you do work with a partner, you need only turn in one solution for this homework. Be sure to put the names of both students on the solution that is turned in.
global_function Integer Convert_To_Integer (
preserves Natural_Number_1_C& n
);
/*!
requires
n <= MAXIMUM_INTEGER
ensures
Convert_To_Integer = n
!*/