Question: Using DCDL to write a program that replaces a * b by a b and a**b by a b, where a and b

Using DCDL to write a program that replaces a * b by a ­ b and a**b by a ¯

b, where a and b are any characters other than *. For example, if a 1

a 2 * a 3 * *a 4 ***a 5

is the input string then a

1 a

2 ­ a 3 ¯ a 4 *** a 5

will be the output string.

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 Systems Analysis And Design Questions!