Question: Write a SIMPL (or notSo) program which inputs a number, n, and returns F_n (the nth Fibonacci number), if n is positive, and 0 otherwise.
Write a SIMPL (or notSo) program which inputs a number, n, and returns F_n (the nth Fibonacci number), if n is positive, and 0 otherwise. Compile the program, and run it to see if it works. Turn in the assembler output of the compiler, a snapshot of the test run F_8 and a program listing. Write regular expressions for the following character sets. a. All strings of as and b's that have an odd number of a's. b. Exercise 2.1.d on p 91 of your text. Draw a DFA for each of the sets of characters of (a) and (b) in Exercise 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
