Question: 5 . This problem will require you to write a leaf procedure ( function ) to operate on strings. You will pass a string to

5. This problem will require you to write a leaf procedure (function) to operate on
strings.
You will pass a string to the function convert_str for case conversion. You will
convert the uppercase alphabetic characters to lowercase and vice-versa. You
need to make sure you dont apply the conversion to a non-alphabetic character.
You need to store the converted characters in the stack.
You can assume a suitable string of at least 10 characters in your data section
6. This problem will require you to write a non-leaf procedure (call function from
another function).
You will still do the same essential coding of Problem 5, but here you will test if the
character is an alphabet or not, using a non-leaf procedure test_char. This function
will return 1 for uppercase character, -1 for lowercase character and 0 if its not an
alphabet. You will call test_char from convert_str from this purpose.
Write both of these in LegV8 please

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!