25. Write an object-oriented program to read a set of lines from stdin and store them in an array A; again read a string S from the stdin and check whether the given string S in the array A. If it is,...




25. Write an object-oriented program to read a set of lines from stdin and store them in an array A;


again read a string S from the stdin and check whether the given string S in the array A. If it is, remove string S from the array A and print the updated array on the stdout. For example,


A = concatenate S = cat


The updated a is conenate.


26. Write an object-oriented program to read a set of lines from stdin and store them in an array A; again read strings S1 and S2 from the stdin and check whether the given string S1 is in the array


A. If it does, replace the string S1 with string S2 and print the updated array. For example,


A = concatenate S1 = cat


S2 = 123


The updated A is con123enate








May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here