Specifications for the Computer Class

The Computer class for assignment #4 represents a computer and must meet the following specifications.

Public static constants: Constants are needed to represent the size of memory (which will be 32), each machine language instruction (such as HALT = 0, LDA = 1, STA = 2, and so on), and status information. Use a different integer value for each. The main program should use the status constants when checking the status returned by the loadProgram method and the runProgram method. Use the following status constants.

Instance Variables: The class must have the following instance data.

Public Methods: The class must have the following public methods.

Private methods: The class should have the following helper methods that will be called by the runProgram method.