Further instructions
Please check the following requirements for Q1 in your assignment:
1. (a) Write a MARIE program to calculate Fib(n),
Please test your code by entering the following values:
- If the user inputs 7, the program outputs the value 13;
- if the user inputs 15, the program outputs the value 610;
- if the user inputs 20, the program outputs the value 6765 .
Please provide the screenshots for above 3 results ONLY. Use Snipping tool to get the screenshot, and paste each into a word document.
The code of your program needs to be copied from MARIE and paste it into your word document that we can edit it (screenshot of it is NOT allowed).
(b) For some values of n, your program will not produce correct results. You can check this by gradually increasing the values of n and checking for the correct outputs. What is the maximum value of n for which your program produces a correct result? Why? Please comment on this.
The post Further instructions appeared first on My Assignment Online.