Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago