Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Bioinformatics Databases And Systems

Authors: Stanley I. Letovsky

1st Edition

1475784058, 978-1475784053

More Books

Students also viewed these Databases questions