CSCI 457 Assignment 2 – Hexadecimal Calculator
CSCI 457 Assignment 2 – Hexadecimal Calculator
• The calculator should support 4 basic arithmetic
operations: + – * and /
• The calculator will operate on hexadecimal numbers, not
decimal numbers
• The calculator only needs to operate on unsigned integers
(i.e. UInt). You do not need to consider negative numbers
or fractions.
• The calculator should support the 16-digit hexadecimal
numbers (i.e. The range of the numbers is from 0 to FFFF
FFFF FFFF FFFF). Prevent the user from entering a number
that is greater than FFFF FFFF FFFF FFFF.
• The calculator should handle overflow and underflow
gracefully. The app must not crash.
• The calculator should handle division-by-zero error
gracefully. The app must not crash.
• The calculator should be able to support most of the
devices and orientations. If it does not support the old
devices earlier than iPhone 6, it is okay.
DETAILED ASSIGNMENT