1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nignag [31]
3 years ago
13

Write a program which takes a string input, converts it to lower case, then prints the same string with all vowels (a, e, i, o,

u) removed.
Hint: one good way to do this is to make a new String variable and add all the letters you want to print (i.e. everything except vowels) to it.

Sample Run:

Enter String:
Animation Rerun
nmtn rrn
Computers and Technology
1 answer:
Flauer [41]3 years ago
5 0

Answer:

Scanner scan = new Scanner(System.in);

  System.out.println("Enter String:");

  String v = "aeiou";

  String t = scan.nextLine();

  t =t.toLowerCase();

  String nt ="";

  for(int i = 0; i < t.length(); i++){

  char c = t.charAt(i);

  if (v.indexOf(c) == -1){

  nt += c;

    }

    }

  System.out.println(nt);

   

}

 

}

Explanation:

Good Luck

You might be interested in
Coloumn1; Criteria1: Average of best three marks (CA); CA&gt;=40
Nikitich [7]

Answer:

Please check the attachment.

for the assembly language program the jump and move keywords have been used to establish the if else ladder.

Also for the best three marks, we need to store the three theory and two practical marks in an array, and then we can sort it to get the best three marks to find the CA. and then from initial array, we can find the last two practical test parks, and find their average.

Rest of the calculation is as being mentioned in the image. Also, in the image we have 2 practicals. We need to count two instead of three there, and rest is as shown.

Explanation:

The answer does not require any further explanation.

5 0
3 years ago
which of these paste options is commonly available from the paste options button? A&gt; use the destination them. B. keep the em
Anuta_ua [19.1K]
The correct option is D, PASTE AS CONTENT ONLY.
The paste option is the one which allows one to copy the content in a particular page and put it another space or page. The paste command has many options depending on the software that one is using, whether it is word, excel or power point. These options allow one to customize the copied and pasted content. One of the options that are usually available under paste option is paste as content only.
6 0
3 years ago
Read 2 more answers
If you see ##### in a cell, you should
Hatshy [7]
Re-read what you've typed in that cell see if you typed it correctly.
3 0
3 years ago
Gunther is filling in his own input mask. He wants to format the Social Security numbers of his clients. The field must contain
kati45 [8]
Last one I am not sure they
4 0
3 years ago
If I wanted to repeat an action such as a heading for a paper, it would be helpful to _____. create a citation create a caption
salantis [7]
Um... Copy and paste
7 0
3 years ago
Read 2 more answers
Other questions:
  • What is the lowest and highest address of a 2^20 byte memory, if it is byte readable.
    11·1 answer
  • Lenovo's ThinkPad laptop computers is designed in the United States, the case, keyboard, and hard drive are made in Thailand; th
    14·1 answer
  • What do developers do to support software products
    14·1 answer
  • 3. When you right-click a linked spreadsheet object, what commands do you choose to activate the Excel features?
    7·2 answers
  • Anybody know this question???
    6·1 answer
  • 1. Implement the function dict_intersect, which takes two dictionaries as parameters d1 and d2, and returns a new dictionary whi
    8·1 answer
  • Match each career to its various job roles. digital media coordinator digital media specialist photographer sound producer creat
    13·1 answer
  • Does anyone know how to change your username? plz help I don't want my name on this lmo
    8·2 answers
  • Pleaseee help me with the typical situations of the icons(i already know for words but I have no idea for giving the situations
    5·1 answer
  • The _________________ creates international guiding principles for computer forensic examiners.
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!