Question: Task 1 : Implement a procedure that ask the user for his name then greet him as per the following dialogue: What is your name?
Task : Implement a procedure that ask the user for his name then greet him as per the
following dialogue:
What is your name?
Coco
Hello Coco!
Follow function call convention and use stacks if needed as per convention. Save your
solution as a file named dexasm and submit on eclass.
Task : Implement a recursive procedure that uses Euclid's algorithm to find
the greatest common divisor of two positive integers a and referring to the following
pseudocode:
gcd x y
if y return x;
else gcdy xy;
Write a main program that i asks the user to enter two positive integers a and
ii calls the recursive procedure to find their greatest common divisor,
and iii outputs the calculated result. Use stack for recursion. Save your solution as
a file named dexasm and submit on eclass.
Task : Implement nonstack versions of the del ch and insch procedures that
still call delch and insch respectively. Both the delch and insch
procedures should be in the same program file. How many additional registers
have you used in your implementation to compensate for the lack of a stack? Save
your solution as a program file named dexasm and submit on eclass.
Hint: The program can ask for user input to decide whether to insert or delete
characters from a string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
