Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an ALP that will examine a set of strings. The length of each string is four characters. The number of strings to be examined
Write an ALP that will examine a set of strings. The length of each string is four characters. The number of strings to be examined is stored in location 'STR1'. The modified strings are stored starting from location 'DAT1'. The ALP should scan each string and see if it is equal to' '(four blank spaces). If yes, all strings that follow this string of four
blank spaces should be reversed until the next string of fou blank spaces is encountered.
For e.g. if the set of strings are: 'math', 'have',' , 'bury', 'mine', 'dine',' ', 'hell', 'deep', 'tree The ALP should change it to 'math', 'have',' , 'yrub', 'enim', 'enid',' ', 'hell', 'deep', 'tree' Tave the cam avion submit a cinale DDC fileStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started