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


NOTE: This is in Java :)

if you can do this... It will be helping me a lot for my Java Exam ....

Answers

Answer 1

import java.util.Scanner;

public class JavaApplication66 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

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

       String vowels = "aeiou";

       String text = scan.nextLine();

       text = text.toLowerCase();

       String newText = "";

       

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

           char c = text.charAt(i);

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

               newText += c;

           }

       }

       System.out.println(newText);

   }

   

}

This works for me. Best of luck.

Answer 2

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!


Related Questions

Who is credited with writing Google's famous page ranking search algorithm?
A) Larry Page
B) Steve Jobs
C) Mark Zuckerburg
D) Bill Gates

Answers

Larry page is the correct answer :)

Answer:

Larry Page i believe

Explanation:

Which method returns the time at the user's location?
localtime()

usertime(0

gmtime()

time()

Answers

Answer:

localtime()

Explanation:

it is right

Answer:

Time

Explanation:

importance of using information and communication technology in personal life

Answers

Answer:

ICT has a great impact in our daily lives. ... It can improve the quality of human life because it can be used as a learning and education media, the mass communication media in promoting and campaigning practical and important issues, such as the health and social area.

Explanation:

The process of sending a result back to another part of the program is
known as returning the value.

Answers

Answer:

The process of sending a result back to another part of the program is known as pushing a value False In Python, functions and other resources are coded in components called modules

Explanation:

What are the default page settings for a Google Doc? *

Answers

Wym sir/ma’am (Click File > Page Setup. Change the page size to A4. Click Set as default) if that’s what you need

Which of the following is not one of the four criteria for evaluating websites?

Question 1 options:

currency


content and accuracy


validity


authority

Answers

Answer:validity

Explanation:

Because it dont sound right

The option that doesn't belong to the criteria that can be used to  evaluate websites is C: validity.

evaluation of  websites can be regarded as the way to determine the value of information that can be found on the Internet.

Criteria that can be used in evaluation are;

Accuracy: this explains the reliability as well as correctness of the contentRelevance: this describe how important is the needed informationCurrency: this serve as the time period for the information.Authority:  this serve as source of the information.

Therefore, option C is correct.

Learn more at:

https://brainly.com/question/2510490?referrer=searchResults

Write a scientific explanation that explains how we know the tectonic continental plates are not in the same location today that they were in the past.

Answers

Answer:

Im not a 100% sure this is correct.. but ill try my best!

Explanation:

The tectonic plates where orignally connected in Pangaea. The plates begein to move apart, causing earthquakes, and physical features. If it whernt for the tectonic plates moving, Pangaea would still exist today showing clear evidence they most likley had moved.

Breaking difficult problems down into smaller more manageable pieces is an example of

Answers

Answer:

Divide and Conquer

Explanation:

Does anybody know the answer to 5.7.5: Factorial of Code HS? I can’t figure it out

Answers

In this exercise we have to use the knowledge of computational language in JAVA to describe a code, like this:

The code can be found in the attached image.

To make it easier the code can be found below as:

function myFunction(num){

n = 0;

total = 1;

while (n < num){

  total *= (num - n);

  n+=1;

}

return total;

}

alert(myFunction(6));

See more about JAVA at brainly.com/question/2266606

middle of test help pls
Which of the following could be a possibility in the future?


A voice-activated computers

B computerized glasses

C holographic messages

D computerized watches

Answers

Answer:

I'm thinking d

Explanation:

i dont think we are advanced enough to do a,b, or c.

so imma say d

Answer:

all

Explanation:

The internet's data pathways rely on what kind of hardware device to route data to its destination?
servers
O ISPs
O routers
O IP addresses

Answers

Answer:

It is B router

Explanation:

Routers help with getting the WIFI from the ISP Internet Service Provider and then distribute it across your house-workplace  

Answer:

Explanation:

Edge 2022

IN JAVA
Using a for loop, write a program that prompts the user to input a positive integer. It should then print the multiplication table of that number.

Enter a positive integer: 5


Example output:

0 0 0 0 0 0 0 0 0 0 0

0 1 2 3 4 5 6 7 8 9 10

0 2 4 6 8 10 12 14 16 18 20

0 3 6 9 12 15 18 21 24 27 30

0 4 8 12 16 20 24 28 32 36 40

0 5 10 15 20 25 30 35 40 45 50

Answers

import java.util.Scanner;

public class JavaApplication67 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.print("Enter a positive integer: ");

       int num = scan.nextInt();

       while (num < 0){

           System.out.println("Please only enter positive numbers!");

           num = scan.nextInt();

       }

       

       for (int i = 0; i <= 10; i++){

           System.out.println(num*i);

       }

       

   }

   

}

This displays the given integer's multiplication table up to 10.

I have a computer teacher who made me lose points in an assignment and saying that the reference page should be on a separate page. But, when I rechecked my work the reference page was actually on a separate page, and she was marking points off for no reason. She says that she'll grade on "what she sees". I created a document with the link to my assignment and screenshots showing proof that I did the assignment correctly. I even circle the screenshots for her to see where the reference page is. But, she still doesn't believe me at all. What should I do?

Answers

Answer:

Have a talk with your teacher. Ask why she doesn't believe you, and if it still doesn't work, have a talk with someone that can physically help you - a principle or another teacher may be the best solution.

What number will be output by the console.log command on line 5?
A. 10
B. 25
C. 30
D. 35

Answers

Answer:

The output is 35

Explanation:

Required

Determine the output on line 5

We start by analysing the program line by line.

On line 1: kit = 20

On line 2: roo = 10

On line 3: kit = kit + 5

Substitute 20 for kit.

So, we have

kit = 20 + 5

kit = 25

On line 4:

roo = kit + roo

Substitute values for kit and too

roo = 25 + 10

roo = 35

On line 5: Output roo

So, 35 is displayed as an output

What type of business document is used to
communicate inside the company?

Answers

Answer:

Where’s your answer choices

Explanation:

Put it in the comments and I’ll do the same

use the drop down menus to describe how adman can add shapes to his presentation

Answers

Answer:

✔ Illustrations

✔ a crosshair

✔ left-click and drag

Explanation:

Which emails go to the draft folder

Answers

Answer:

Hi there, the only emails that go to the draft folder are the emails that you start to write and then you don't finish it so you can go back and finish writing it later.

Explanation:

Hope this helps!! Please consider marking brainliest! Have a good one!!

Answer:

An email that you haven't sent yet or that is unfinished.

Explanation:

You can send an email to the draft folder by just exiting the tab before you hit send which then places the email message into the drafts folder.

Which of the following is not a natural resource

Answers

Explanation:

Hydro-electric energy is not a natural resource because people use turbines to convert the energy from moving water. Abiotic resources are those that come from non-living, non-organic material. Examples of abiotic resources include land, fresh water, air, rare-earth elements, and heavy metals including ores, such as gold, iron, copper, silver, etc.

A nonrenewable resource is a natural substance that is not replenished with the speed at which it is consumed. It is a finite resource. Fossil fuels such as oil, natural gas, and coal are examples of nonrenewable resources. ... Renewable resources are the opposite: Their supply replenishes naturally or can be sustained.

Jasmine wrote a program where the actor does things in order. Which term best describes this program?
O sequential
Oselection
Oconditional
Oiteration

Answers

Answer:

Sequential

........................

Answer:

sequntial

Explanation:

Sarah has to add a picture from her computer file and add a caption to it. Arrange the steps in a correct sequence.
click From File
click Insert
right-click the picture
click Picture
select the desired picture and again click Insert
write the caption and add it
click Insert Caption











Answers

Answer:

-Click insert

-Click picture

-Click from file

-Right click the picture

-Select the desired picture and again click Insert

-Click insert caption

-Write the caption and add it

Explanation:

Answer:

B: by right-clicking the bottom row, clicking Insert, then clicking Insert Row Below

Explanation:

The power of if worksheet

Answers

what are you talking about?

What does the following loop do? val = 0 total = 0 while (val < 10): val = val + 1 total = total + val print( total)

Answers

Answer:

print(total) => 45

Explanation:

# smells like Python...

val = 0 #initialize incrementor named 'val' at 0.

total = 0 #initilize accumulator named 'total' at 0.

while (val < 10): #look to execute while val is less than 10.

 val = val + 1 #increment val (val++) by 1

  total = total + val #increment total by val (val+=total)

# Step: val = 0

## val => 1, total => 1

# Step: val = 1

## val => 2, total => 3

# Step: val = 2

## val => 3, total => 5

# Step: val = 3

## val => 4, total => 9

# Step: val = 4

## val => 5, total => 14

# Step: val = 5

## val => 6, total => 20

# Step: val = 6

## val => 7, total => 27

# Step: val = 8

## val => 9, total => 36

# Step: val = 9

## val => 10 (END_LOOP), total =>  45

print(total) #print variable 'total'

what is the main purpose of a web crawling program
A.two index web pages for quick retrieval full of content B.turn create meta tags for web contact C. to search illicit or illegal web activity D.to convert keywords to HTML
Please ANSWERRRRR​

Answers

Answer:

the answer is A because Web crawlers enable you to boost your SEO ranking visibility as well as conversions.

Explanation:

PLEASE HELP!! TIMED Select the corect answer. You try to enter your name to a cell that accepts a numeric value What error would you receive?
A. #NAME
B. #VALUE
C. #REF
D. #####
E. #DIV​

Answers

Answer:

B. #VALUE

Explanation:

Occurs if one of the variables in your formula is of the wrong type (e.g. text value when a numeric value is expected).

Answer:

B. #VALUE

Explanation:

Occurs if one of the variables in your formula is of the wrong type (e.g. text value when a numeric value is expected).

Which method allows you to choose how to display the date and time?

localtime()

time()

strftime()

format()

Answers

The method that allows you to choose how to display the date and time is the format. The correct option is d.

What is a display?

The display is the screen of electronic devices. It is a display that is a computer output surface and projecting mechanism that presents text and frequently graphic pictures to the computer user.

It only has two possible values: black or white. The image's white color will be displayed as "white," while the other colors will be displayed as black. Once more, only the black and other colored things have changed; the white portion has not. The image's true color would be displayed.

A file format is a format of data that is stored in proper encoding. It also tells the information about bits used in the formation.

Therefore, the correct option is d. format.

To learn more about the display, refer to the link:

https://brainly.com/question/8566172

#SPJ2

Answer: "format()"

Explanation: Did it myself :)

Find and enter the correct amount. 5 9 of a $18 restaurant bill = $

Answers

Answer:

Calculate a tip or gratuity and get the total amount to pay. Enter your meal or dinner cost along with the tip percentage.  If you are splitting the cost at a restaurant among several people you can divide by the number of people to get the total cost each.  Optionally round the results to dollars.

BRAINLIEST PLEASE

Tip = Cost * 0.xx

Total including Tip = Cost * 1.xx Explanation:

4.11 lesson practice edhesive questions 4 and 5​

Answers

Answer:

It may just be me but I can't see the picture

Explanation:

Answer:

4. Monte carlo simulations

I need the answer for number 5 please.

Explanation:

Help me!!

In news writing, which is bigger , a topic or a angle

Answers

Answer: A topic

Explanation:

News writing has to do with when people write for publication which can be in a magazine, newspaper, etc. A topic simply means the subject that a writer or s person is discussing or writing on. The topic helps in having an idea on what the paragraph will be about.

The angle of a particular story or new simply means the point of the story. Angle is the viewpoint through which writers typically share their stories.

It should be noted that the topic is bigger as it is more detailed than the angle.

I need help with question 2

Answers

The missing word is range.

The range function creates a list of numbers from x to y-1, where x is the leftmost number and y is the rightmost.

For instance,

range(1, 6) would be the numbers 1, 2, 3, 4, 5

MICROSOFT WORD PLZ ANSWER THIS

Answers

Answer:

font face i think

Explanation:

Other Questions
What mixes with rain to produce acid rain? Dan needs to get to austin as fast as possible. The train leaves at 3pm and can travel at a speed of 60 miles per hour. if austin is 65 miles away, how long will it take dan to get there? Original Price: $16.45Markdown: 33%What is the sale price? Round to two decimal places Which values are two of the possible solutions to the equation? sin(5x-pi)= sqrt2/2, for x is greater than or equal to 0 and less than 2piA) pi/20, 3pi/20B) pi/4, 7pi/20C) pi/4, 7pi/4D) 5pi/4, 7pi/4 Un automvil deportivo se mueve a rapidez constante viaja 110m en 5.0s si entonces frena y llega a detenerse en 4.0s Cul es su aceleracin en m/s? PLS HELPSkeletal Muscles are:O A. Easily damaged O B. Attached to bonesO C. Found outsideO D. involuntary muscles Connie and Chris are saving money to go to a concert. Each friend starts with some money and saves a specific amount each week.Connie wrote an equation to show the total, y, she has saved at the end of each week, x.y = 6x + 9Chris made a graph to show the total he has saved at the end of each week.Compare the amount that each friend has when both friends start saving.Select the correct answer from the drop-down menu to complete the statement.Chris starts with $Choose... and Connie starts with $Choose.... A coat was originally priced at $50. It went on sale for $35. What was the percent that the coat was discounted? Select the correct answer.The common mistakes causing the other team to score or win the serve include:.A. Catching or carrying the ballB. Missing a serveC. Hitting the ball out of boundsD. All of the above A sumo wrestler is 330 pounds. How much force does the earth exert in him? Define Mass Define Weight 3) You are selling raffle tickets. You sell tickets to adults and children. You sell atotal of 475 fickets. Edult tickets cost $3 per ticket and children tickets cost $2per ticket. You eam a total of $1200. How many adult tickets and how manychildren tickets were sold? This is 10 points. Which line of code will display the variable num rounded to the nearest tenth?A. print(num, round)B. print(round(num, 1))C. print(num rounded)D.print(round(num,.1)) is y= -7x linear or non linear Open Ended Dan takes an airplane to visit his parents. He pays the airline a total of $400. The cost of the ticket is $320. The airline also charges $10 for every pound that the luggage goes over the 50 pound limitHow many pounds is Dan's luggage over the 50 pound limit? Use pencil and paper. Describe another situation using the same numbers.Dan's luggage is pounds over the limitType a whole number.)PLEASE HELP I WILL MARK BRAINLIEST Compared to last month, there was a 50% increase in the number of houses sold this month. I am a five-letter word starting with 'R' and ending with 'E'. Icontain three vowels. People don't trust me as I am considered adishonest and unprincipled person. I am HURRY I NEED AN ANSWER ASAPThe CMYK is a _____ model, meaning it uses colors to absorb light. The U.S. Mint began issuing state quarters in 1999. There was one state quarter for each of the 50 states. You are collecting the state quarters and want to design a rectangular display with the same number of quarters in each row. How many ways can you arrange your display? PART B: Which phrase from the text best supports the answers to Part A? To determine the height of a pine tree, you measure the shadow cast by the tree and find it to be 20 feet long. Then you measure the shadow cast by a 36-inch tall oak sapling and find it to be d= 12 inches long (see figure). Estimate the height of the pine tree.