Question: please help with first year computer science coding (java) (10 marks) P1: Memory and Terminal classes Focus: basics of classes and objects To simulate the
please help with first year computer science coding (java)



(10 marks) P1: Memory and Terminal classes Focus: basics of classes and objects To simulate the computer, we need to create classes representing each of its components (Registers in CPU, Memory, I/O, etc.) The objective of this laboratory will be to implement the Memory class, which will simulate the memory of the computer, as well as a Terminal class to simulate the Input/Output between the simulated computer and the screen/keyboard. MEMORY 0 0799- Input Device 2 3 4 5 6 7 8 9 0798 0198 0499 1008 1108 0899 0909 0898 000O Program Counter CENTRAL PROCESSING UNIT Instruction Register Accumulator Output Device After you finish Labs P1 to P4, your program should run as in the example below. The default program loaded in the memory above (i.e. the red values in the memory) will read two integers from the user and display the larger of them
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
