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
The ASE certification system uses _______ testing and an evaluation of on-the-job experience to confirm that a technician meets
erma4kov [3.2K]
 MY answer would be A or C .Hope this helped
7 0
3 years ago
Read 2 more answers
What is the domain and path in this URL? www.example.com/homepage.html​
Alex17521 [72]

Answer:

the domain is example.com. the path is /homepage

Explanation:

4 0
3 years ago
Arrange the steps in a sequence that you would follow while sorting data in a spreadsheet.
ss7ja [257]

Answer:

  1. In the spreadsheet menu, click the Data option.
  2. Select the column to sort.
  3. In the submenu of Data, click the Sort… option.
  4. In the Sort dialog box, click the “ascending” option for the  first sort criteria.
  5. Click OK.

Explanation:

The correct sequence is as shown above.

3 0
3 years ago
Given an array temps of doubles, containing temperature data, compute the average temperature. Store the average in a variable c
oksian1 [2.3K]

Answer:

#include <iostream>

using namespace std;

int main() {

   double temps[10]={32.2,30.1,33.5,32.8,35.0,36.7,36.8,35.6,34.9,36.9};//initialized 10 temps values.

   double avgTemp,total=0;//two varaibles declared.

   for(int k=0;k<10;k++)//for loop to calculate the average..

   {

       total+=temps[k];//adding temperature values to the total..

   }

   avgTemp=total/10;//calcualting the average..

   cout<<"The average temperature is "<<avgTemp<<endl;//printing the average temperature.

return 0;

}

Output:-

The average temperature is 34.45.

Explanation:

The above written code is in C++. An array of double temps is initialized with arbitrary 10 values.Then the average is calculated using the integer k and the average is stored in the variable avgTemp. Then it is printed on the screen.

4 0
3 years ago
With the help of what memory a computer can read as well as write or modify data
vivado [14]

Answer

Hi,

With the help of <u>random access memory(RAM)</u> a computer can read as well as write or modify data.

Explanation

Memory is a vital element in computers because it allows it to perform simple tasks. The random access memory/read write memory/main memory/primary memory is a volatile memory data stores the programs and data that the CPU requires for execution. This type of memory can easily be written as well as read from using the software associated with its functioning.

Hope this Helps!

6 0
3 years ago
Other questions:
  • Demonstrate your grasp of the Unix file system by constructing a directory structure as follows: In your home ( ~ ) directory, c
    11·1 answer
  • Write a program to prepare the monthly charge account statement for a customer of CS CARD International, a credit card company.
    11·1 answer
  • the two main forces acting on a computer that sits on a table are _________ and _________. a. weight; gravity b. weight; mass c.
    6·2 answers
  • Positive and negative impacts of chemical industries
    6·2 answers
  • What does f.i.r.s.t stand for in robotics
    15·1 answer
  • Describe how you would define the relation Brother-in-Law whose tuples have the form (x, y) with x being the brother-in-law of y
    9·1 answer
  • Explain about forensic tools?
    14·1 answer
  • 4.2 lesson practice last one plzs help
    5·2 answers
  • .... . .-.. .-.. --- .-.-.-<br><br><br> TRANSLATE THAT.
    10·1 answer
  • A series of dialog boxes that guides you through creation of a form or report is called a ____.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!