Question
must be in java Write programs that read a line of input as a string and print a. Only the uppercase letters in the string.
must be in java
Write programs that read a line of input as a string and print
a. Only the uppercase letters in the string. b. Every second letter of the string. c. The string, with all vowels replaced by an underscore.
d. The number of vowels in the string.
e. The positions of all vowels in the string.
use this for a,b,c,d & e.
Import java.util.Scanner;
public class E63a{
public static void main (String[] args){
Scanner input = new Scanner (System.in);
system.out.println(Enter the string to be converted: );
String text = input.nextLine();
String newText; // use this variable for your converted text
//your code here
// you should convert the String text as directed in the textbook
//use the variable newText for your answer
System.out.println(The converted text is: + newText);
}
}
help if you cannot provide correct solutions do not answer thank you
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started