Question: Write a Java program that prompts the user for a line of text and counts and replaces the lower case vowels 'a', 'e', '1','o' and

Write a Java program that prompts the user for a line of text and counts and replaces the lower case vowels 'a', 'e', '1','o' and 'u' by the counter. End by stating how many vowels your replaced. Comments are not required. Here are 2 sample outputs to illustrate the expected behavior of your program. User input is highlighted. Your output does not need to be formatted in exactly the same way. Just make sure the required information appears. Your program must work for any line of text entered by the user, not just the ones in the samples below. Sample 1: Please enter a line to edit computer science Here is your modified input: cimput2r sc34nc5 I just replaced 5 lower case vowels Sample 2: Please enter a line to edit Java programmig is fun Here is your modified input: Jlv2 pr3gr5mmng 7s f8n I just replaced 8 lower case vowels
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
