Question: write a cobol program with below requirement. read a string from terminal with maximum length 1 0 0 . Read sub string from terminal.Use ACCEPT

write a cobol program with below requirement.
read a string from terminal with maximum length 100.Read sub string from terminal.Use ACCEPT verb in both cases.print how many times the substring appered in main string.
For example.
Test Case1:-
aaaaaa
a
output:-6
Test case 2
abcabdab
ab
Output:-3
Test Case 3
abcdabcdababcd
abcd
Output:-3
Test all test cases.

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 Accounting Questions!