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
krok68 [10]
3 years ago
6

Write a function called which_vowels_present that takes a single string parameter. Complete the function to return a list of str

ings indicating which vowels (a, e, i, o, and u) are present in the provided string. The case of the vowels in the original string doesn't matter, but they should be lowercase when returned as part of the list. The order of the vowels in the list doesn't matter.
Computers and Technology
1 answer:
romanna [79]3 years ago
5 0

Answer:

import java.util.ArrayList;

import java.util.List;

public class Vowels {

   public static void main(String[] args) {

   String word = "I am David from Nigeria";

       System.out.println(which_vowels_present(word));

   }

   public static List which_vowels_present(String enteredWord){

       List<Character>list = new ArrayList<>();

       String word = enteredWord.toLowerCase();

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

           if (word.charAt(i) == 'a' || word.charAt(i) == 'e' || word.charAt(i) == 'i'

                   || word.charAt(i) == 'o' || word.charAt(i) == 'u') {

               list.add(word.charAt(i));

           }

       }

       return list;

   }

}

Explanation:

  • Using Java programming Language
  • Import java.util.ArrayList; and java.util.List
  • Create the method which_vowels_present which accepts a string parameter
  • Within the method create a list object
  • Use a for loop to iterate the string. within the for loop use an if statement to check individual characters of the string if any is a vowel, add it to the list
  • return the list
  • In the main method, create a test string, call the method and pass the string as parameter

You might be interested in
Is a trade group that promotes wireless technology and owns the trademark for the term “wi-fi”
ivann1987 [24]

Answer:

1. Wifi Alliance

2. Cells

Hope this helps! Have a great day! :)

7 0
4 years ago
Read 2 more answers
16. (PPT) You can use features on the Video Tools Playback tab to adjust how and when the video plays during the slide
Nezavi [6.7K]

Answer:

a. True

Explanation:

5 0
2 years ago
A customer has contacted you to help him alleviate the large amount of time and effort that goes into adding and removing users
Ostrovityanka [42]

Answer: On-demand

Explanation:

On-demand computing is the term of cloud computing that describes the function that provides organization with cloud hosting services. This function permits those organization to provide their customers for assessing computing resources and services as per necessity.

According to the question,on-demand is the computing function that should be used in the mentioned case. Technician and customers will get to access the computer as per their necessity and will not have to waste their efforts and time.

7 0
4 years ago
Which option identifies an important language for Sasha to understand in the following scenario?
DiKsa [7]

Keeping the fact in mind that Sasha wants to work as a program developer of iPhone applications, she will have to make use of the native language Objective-C.

Objective-C

<u>Explanation:</u>

The iPhone applications and interface work on iPhone Operation System or IOS, that make them completely different from the android and other operating systems currently being used in smartphones.

Moreover, Apple Inc. took a decision to use native languages like Objective-C for application development in the IOS environment because it cost them less as compared to other languages and the performance parameter also stands high and unaffected.

3 0
3 years ago
1. Select two forms of case designed suitable for ATX power supply and
jekas [21]
The answer should be c
4 0
3 years ago
Other questions:
  • Write a program having a concrete subclass that inherits three abstract methods from a superclass. Provide the following three i
    11·1 answer
  • What happens if the cursor is in the last cell in a table and you press Tab?
    10·1 answer
  • .Write a program that reads in the length and width of a rectangular yard (in meters) and the length and width of a rectangular
    15·1 answer
  • A company decides to relocate its operations to another state in order to take advantage of some new business investment credits
    15·1 answer
  • Lester has to create an app that can support offline data and rich media content such as audio and video. In which programming l
    15·1 answer
  • If a file you are opening for appending does not exist, the operating system will detect the missing file and terminate the oper
    14·1 answer
  • Help on What i should say to my IT school lady? Read all three pages
    10·1 answer
  • You have recently subscribed to an online data analytics magazine. You really enjoyed an article and want to share it in the dis
    9·1 answer
  • A router periodically goes offline. Once it goes offline, you find that a simple reboot puts the router back online. After doing
    12·1 answer
  • High speed printer that produce higher quality printouts but are more expensive is
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!