Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Marie Code

You are to create a program in MARIE. You program will take the following list of numbers:

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12

and perform the following sequence of operations:

1. add them all up and store the answer
2. reverse them into another list
3. add the first (or original list) to the reversed list, item by item, and store the answer in a third list

Each of the above operations is to be implemented as a subroutine. There should be a main program that calls each of the subroutines in order.

Write your program. Run it within the MARIE environment. Turn in your listing, and include the results (show me that each subroutine worked correctly). Create a writeup explaining what is missing from the MARIE CPU architecture, th at is included in most every other real CPU architecture today, that makes this simple exercise more difficult in MARIE than it would be in a real CPU architecture. Create a gzip or zip file with these items and send it to the email in the syllabus.

Sign In or Register to comment.