Wyo C++ - Ch. 4 Programming Assignment
Ch4Proj1.cpp
Specs: Write out a program on paper that declares
variables named maxInt, minInt, maxChar, minChar, maxDouble, and minDouble with
the appropriate data types. Initialize each variable appropriately to the maximum
or minimum possible value allowed by your compiler using any available defined
constants in header files such as limits.h and float.h. Do not use assignment
statements to set their values. Then, use appropriate output messages to display
each variable's numerical value on individual lines of output. For example,
The value of maxInt is 2147483647.
(Notice the period at the end of the sentence.) You must force the char variables
to display as numerical values and not characters.
After carefully writing out this program on paper, type it into the compiler
and debug if necessary. Your program must follow the Coding
Standards. Save the source code file as "Ch4Proj1.cpp" in the
appropriate network folder.
Preconditions:
None
You must hand in the following on separate pages stapled in this specified order:
After you've printed out your good copy of the source file, try adding 1 to the maximum values of the integer and char data type variables and be able to explain the results in terms of C++ overflow.