Question: 1. Write a java program to iterate over characters of a string to replace every occurrence of 'a' with a ' A ' based on

1. Write a java program to iterate over characters of a string to replace every occurrence of 'a' with a ' A ' based on the following requirements: a. Ask the user to enter any string (1 mark) b. Use a for loop in your program (2 marks) c. Don't use any methods and libraries that are not covered in the slides. d. The program should print the number of characters that have been modified. (1 mark) e. The program should print the new string (1 mark) Sample Run1: Sample Run2: 2. Write a java program using a nested for loop to generate the following output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
