Answer:
Following is attached the code that works accordingly as required. It reads in characters from standard input and outputs the number of times it sees an 'a' followed by the letter 'b'. All the description of program is given inside the code as comments.
I hope it will help you!
Explanation:
Selecting the button assigned
Using the shortcut Keys assigned
Explanation:
By clicking the assigned button one can run a macro and we can assign a short cut key to macro which we created.
So, the two options we can use to run a macro.