Write programs that read a line of input as a string and


Program: Write programs that read a line of input as a string and input

Part a) Only the uppercase letters in the string.

Part b) The string, with all vowels replaced by an underscore.

Part c) The positions of all vowels in the string

import java.util.Scanner;
public class Lab5
{
public static void main(String []arg)
{

    Scanner input = new Scanner(System.in);
    System.out.println("Type a word and press Enter to be reversed:");
    String s = input.nextLine();
    System.out.println("You typed: "+ s);

PLEASE make sure it compiles and write the full program to receive full credit. Thank you so much for your help.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write programs that read a line of input as a string and
Reference No:- TGS0958393

Expected delivery within 24 Hours