write a function called which_vowels_present that takes a single string parameter. complete the function to return a list of strings 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. for example, if the provided string was 'all good people.', your code could return ['a', 'e', 'o']. it could also return ['e', 'o', 'a']. one way to implement this would be to use the filter pattern starting with the list of all vowels.

Answers

Answer 1

The function which_vowels_present will be implement using the Kotlin Programming language, also, a single for-loop is okay for the solution to this problem

//Here is the Algorithm for the problem

fun which_vowels_present(parameter: String) {

   for (c in parameter.toCharArray()) {

       when (c) {

           'a', 'e', 'i', 'o', 'u' -> print("$c")

       }

   }

}

Furthermore, to help us solve the problem, we took advantage of kotlin's in build string function that can convert a string array to Character array

Learn more:

https://brainly.com/question/14432459


Related Questions

A couple is required by their lender to have a down payment of 20% of the purchase price of the home they want to buy. If the couple has saved $35,000, what is the most expensive home the couple can afford to buy?a. $63,000b. $140,000c. $175,000d. $210,000.

Answers

The most expensive home the couple can afford to buy is $175000.

An equation is an expression that is used to show the relationship between two or more numbers and variables.

The couple needs down payment of 20% of the purchase price for any home. Let d represent the most expensive home they can afford. If the couple has saved $35,000:

20% of d = 35000

0.2d = 35000

d = $175000

The most expensive home the couple can afford to buy is $175000.

Find out more on equation at: https://brainly.com/question/13763238

Answer:

C175,000 is indeed highest price.

Explanation:

edge2022

as a student have you ever encountered any of these barriers

Answers

I'm not sure which barriers??.

The illustration shows a light ray striking an object. In the illustration, the light ray striking the object is-.

Answers

Answer:

(volume) i guess that is the answer

Which resolutions connect to the theme that real friends will usually do the right thing? select two options. Amaya passes the most difficult test with the help of keiko’s notes. Keiko confronts amaya directly, which leads to amaya apologizing. Amaya hands the papers back to keiko and promises to tell the teacher. Keiko catches amaya in the act, but amaya denies any wrongdoing. Amaya blames keiko for making it hard to live up to keiko’s reputation.

Answers

The resolutions that connect to the theme that real friends will usually do the right thing are;

Keiko confronts Amaya directly, which leads to Amaya apologizing.Amaya hands the papers back to Keiko and promises to tell the teacher.

According to the information from the question, we are to discuss the resolutions as regards the theme that real friends will usually do the right thing.

As a result of this ,we can see how Amaya hands the papers back to Keiko and promises to tell the teacher we gives a best instance.

Therefore, resolutions that connect to the theme that real friends will usually do the right thing is where keiko confronts Amaya directly, which leads to Amaya apologizing.

CHECK THE COMPLETE QUESTION BELOW;

Amaya is taking a class that her friend Keiko took a few years ago. Amaya finds the notes and assignments that Keiko saved from her time in the class, and starts using them for her own assignments. Keiko becomes upset after learning that Amaya has done this.

Which resolutions connect to the theme that real friends will usually do the right thing? Select two options.

learn more about theme at;

https://brainly.com/question/11600913

Choose the best answer. Where would you most likely find a birthday present for your three year old brother?.

Answers

target - toy isle. yw and happy holidays!

Which of the following best describes the long-term impact of using a renewable energy source?.

Answers

biomass releases great house gasses when burned and this is a long term impact of a renewable energy source.

All of the following changes to a metal are physical changes except.

Answers

Answer:

A. Cutting

B. Melting

C. Rusting

D.Polishing

Answer: Rusting

Explanation:

Each of the following sentences from the youngest doll contains an example of magical realism except.

Answers

All of the options given contain an example of magic realism except: B. the aunt designs and crafts dolls as gifts for her nieces.

Magic realism is a genre of writing that incorporates myth into realities. In option B, we do not see an example of magic realism because there is no infusion of magic in the events narrated.

The aunt simply designed and crafted dolls for her nieces. This is purely realistic. There is no element of magic here.

Learn more about magic realism here:

https://brainly.com/question/840830

Which description represents this equation? 7x – 2 = 33.

Answers

Answer:

[tex]7x - 2 = 33 \\ 7x = 33 + 2 \\ 7x = 35 \\ x = 5[/tex]

I hope it helps you

Banks that offer low interest rates to people with good credit brainly.

Answers

When Banks offer low interest rate to people with good credit rating, this can be said that these banks are making profits with very low risk

They are making profit with low risk in the sense that they are sure and confident that the customer is worthy enough to return the money and the profit in due time, and in return they give the borrowers low interest rate

Alternatively, If a lender does decide to approve someone with lower credit scores, they will often give them a higher interest rate to mitigate risk.

Learn more about Loan and interest rate:

https://brainly.com/question/26011426

N order to create imagery that appeals to the reader’s senses, an author must make careful word choices. Which words from the poem best create sensory images? she doesn’t dream she is a part of the pond she lives in tied to her by an unbreakable string luminous under the sand.

Answers

Answer:

luminous under the sand

Explanation:

I got it right on my Assignment :)

Answer:

d. luminous under the sand

Explanation:

Based on the description that follows how many potential.

Answers

The number of potential insider threat indicators is; 0 potential insider threat indicators

The given description is missing and it is;

How many potential insider threat indicators does a person who is married with two children, vacations at the beach every year, is pleasant to work with, but sometimes has poor work quality display?

Insider threat indicators are individuals that posses authorized access to certain encrypted government documents/resources and makes use of those government properties to cause harm to the security of a place or state or country.

Now, in our question the married man goes on vacations with his family and as such there is no insider threat indicator because there is no outsider and though the person has poor work quality display, he will not harm his family.

Read more about insider threat indicators at;

https://brainly.com/question/25164014

Which of these statements describe americans’ attitudes? check all of the boxes that apply.

Answers

The statements that correctly describe the attitudes of Americans are;

2) Americans hoped to enter a time of prosperity.

3) Many Americans supported less regulation in business.

The missing options are;

1) Americans were eager to return to progressivism.

2) Americans hoped to enter a time of prosperity.

3) Many Americans supported less regulation in business.

4) Americans became more interested in social issues.

Let us analyze each of the options;

Statement 1: This statement is not true because Americans didn't want to return to progressivism due to the fact it was limited to only white Americans.

Statement 2: This statement is true because that has always been the hallmark of every true American.

Statement 3: This statement is true because the less regulation of business the more they had freedom to expand and make better profit.

Statement 4; This statement is not true because of their experiences under progressivism.

Read more about US history at; https://brainly.com/question/15356490

Which topic is suitable for the size and scope of a five paragraph essay.

Answers

Answer:

essay on economic availability of the country

what effect does the tone of the excerpt have on the reader? it fosters a belief that the narrator is unreliable. it produces a contradictory urge to stop reading and to continue. it inspires confidence that everything will work out fine in the end. it encourages surprising delight in blood and gore.

Answers

Answer: option b it produces a contradictory urge to stop reading and to continue

Explanation:

Hope this helps

The correct response is - Option B results in a conflicting impulse to quit reading and to continue, which is the B answer.

What is an Impulse?

In classical mechanics, the integral of both a force, F, over the time period over which it acts, t, is referred to as the "impulse." Impulse is a vector quantity since force is one as well. When an item receives an impulse, its linear momentum likewise changes in the opposite direction in an analogous vector.

The impulse function is a very brief pulse that can theoretically never end that is used to assess system dynamics. An impulse function in the real world is a pulse that is substantially shorter than the system's temporal response.

In physics, the term "impulse" is used to characterize or measure the impact of force operating gradually to alter an object's motion. The letter J stands for it, and is typically expressed in Newton-seconds

To read more about Impulse, refer to - https://brainly.com/question/11674698

#SPJ2

which statement correctly describe one similarity between cellular respiration and photosynthesis?

Answers

Answer:

Cellular respiration and photosynthesis both have water and carbon dioxide in the reactions

Which of the following may be allowed in a food preparation area.

Answers

Among the listed items, the one that may be allowed in a food preparation area is;

Wedding Band.

Food preparation can be regarded as the process of preparing food which may involve cooking and other activities.

However,, the place of cooking should be hygienic and contaminating items should be do away with.

Therefore, Among the listed items, the one that may be allowed in a food preparation area  is;

Wedding Band.

CHECK THE COMPLETE QUESTION BELOW;

the one that may be allowed in a food preparation area: Smoking, Chewing Gum, Pets, Wearing a Wedding Band

Learn More about food preparation at;

https://brainly.com/question/25705073

What right was roe’s argument based on? the right to maternity leave the right to privacy the right to regulate medical standards the right to gender equality.

Answers

Answer:

The Right to privacy and the right to regulate abortion

Explanation:

Edg2022 ...Brainliest

The right was Roe’s argument based on  right to privacy.  While The state of Texas's argument is  on "The right to regulate abortion".

What is a human's right to privacy?

An invasion of the right of privacy is known to be wrong and  unwarranted exploitation of human's personality.

Conclusively, Note that people have right to be themselves with no interference from others that is why Roe’s argument based on  right to privacy.

Learn more about right to privacy from

https://brainly.com/question/11698259

An organization is conducting their first program increment planning session, and the new teams are asked to provide their capacity. Which action is part of the initial capacity planning process?.

Answers

Based on the given information, action is part of the initial capacity planning process are;

Find a small story that takes about a day to develop and call it a one. Subtract one point for every team member's vacation day, public holiday or training day.Use eight points per person (adjust for part-time employees.

According to the question, an organization is conducting their first program increment planning session and we are to discuss the action that is capacity planning process.

As a result if this we can say that , Using of eight points per person (adjust for part-time employees will be regarded as capacity planning process.

Therefore, action that is part of the initial capacity planning process is to find a small story that takes about a day to develop.

Learn more about program increment planning  at:

https://brainly.com/question/13171394

What should a food worker do to prevent a physical hazard.

Answers

Food safety reminder
Remove all naturally occurring physical hazards, such as bones and pits, from food. Maintain equipment to avoid accidental physical hazards.

Answer:

Wash fruits and vegetables carefully, look closely at the foods you prepare, keep the food preparation area free of things that can fall into the food

Explanation:

Which is a good study tip?

Answers

Answer:

The most effective practice is to work a short time on each class every day. The total amount of time spent studying will be the same (or less) than one or two marathon library sessions, but you will learn the information more deeply and retain much more for the long term—which will help get you an A on the final.

Explanation:

Answer:when you study all ways write notes this is very important if u type your notes you have a higher chance of forgetting what the notes were and if u write than you will probably not forget

Explanation:

A zookeeper predicted that the weight of a newborn lion would be 2. 8 pounds. When the zoo’s lion gave birth, the newborn weighed 3. 5 pounds. What is the zookeeper’s percent error? round to the nearest percent.

Answers

20% would probably be the right answer

Which word from the haiku supports gabriel’s analysis? april’s willow-leaves butterfly balances.

Answers

Answer:

Hey mate!

Explanation:

A motif is dominant idea. A kigo is a word that is tied to a season. In this haiku, the kigo is April which is specifically tied to Spring. April is also the motif because the dominant idea of the haiku is April.

pls mark me as brainliest!!

Answer:

The answer is simply A

Explanation:

because its correct on EDGE2022

An unanswered constitutional question about the judicial branch involves brainly.

Answers

I don’t really know I just need points to get answers

Dianne wants to know if the new learning modalities in the first semester affects the academic performance of senior high students. He took all the lists of all students in her school and selected every 6th name to be part of her study.

Answers

Based on the information given, it can be deduced that a stratified sampling method was used.

It should be noted that a stratified sampling method was used by Dianne. This is a method where large amounts of data are divided into smaller groups and then, samples will be chosen for examination.

From the complete question, the justification is that  Dianne chose a sample that isn't based on probability as the samples are chosen at random. She wanted to know the relationship between the academic performance of students and the new learning modalities.

Learn more about sampling on:

https://brainly.com/question/17831271

The figure below is reflected over x-axis and then translated down 3 units. What are the coordinates of the image of point X after these transformations?

Answers

Answer:

(-7, 5)

The reflection moves it to 8 on the y then its moved down. the x value never changes.

In the future pressing a panic button on your cell phone will.

Answers

In the future, phones will have several new features such as a panic button that will  A. Delete all content and contacts on your phone.

The panic button on future phones:

Is designed to protect data in the event of an emergency. Can delete sensitive information on the phone.

When one presses this panic button, it will lead to all their content and contacts being deleted such that their data will be protected in case someone gains access to their phone. This ensures data protection.

In conclusion, option A is correct.

Find out more on smartphone features at https://brainly.com/question/917245.

Frank has an auto policy with a coverage limit of $30,000 and a deductible of $1,000. He gets into an accident and the damages to his car total $6,200. Fortunately, he has collision coverage. How much will frank need to pay out-of-pocket?.

Answers

The amount that Frank will need to pay out-of-pocket is $1,000. A deductible refers to the amount to pay on a claim before the insurance covers the rest.

A deductible can be defined as the amount to pay “out of pocket” on a claim before the insurance covers the remaining part.

In this case, the auto insurance deductible is equal to $1,000, thereby Frank should pay this amount of money.

There are different categories of auto insurance deductibles (either low deductibles or high deductibles).

Learn more about deductibles here:

https://brainly.com/question/8167631

After reading this lesson, write a 125-word paragraph explaining your views about affirmative action.

Answers

It can be noted that affirmative action is important as it favors those that suffer from discrimination .

What is affirmative action?

Affirmative action simply means the set of policies within an organization that seek to include a particular group based on their race.

From the information in the lesson, it can be noted that affirmative action is important in order to enhance equality in the country. It favors those that are discriminated against in the society.

It's vital in helping minorities secure employment opportunities and get admission into schools.

Learn more about affirmative action on:

https://brainly.com/question/1163395

The density of air under ordinary conditions at 25°c is 1. 19 g/l. How many kilograms of air are in a room that measures 10. 0 ft × 11. 0 ft and has an 10. 0 ft ceiling? 1 in = 2. 54 cm (exactly); 1 l = 103 cm3.

Answers

Answer: The mass of air present in the room is 37.068 kg

Explanation:

Other Questions
Please help on both. Im not sure of my answrs before I submit. Thank u :) why is it hotter in the summer and colder in the winter? Grid systems were used in ancient Greece and China in order to ___________. The ratio of cats to dogs seen at CyFair Animal Hospital is 2 to 5. If Dr. Blue, Dr. Ross, and Dr. Lavigne see 40 dogs altogether, how many cats AND dogs did they see in all? Explain your answer. Please Help please and thank you. what is the x value of the solution to the system of equations below x+y+z=8x+2y=6y+z=4 poems about stepmom 8. In the last section, why does the author mentionAlexander Graham Bell?ato show how the categories we use to classifypeople are changingb to provide an example of the role immigrantshave played in the growth of the U.S.to explain why the demographics of Yakima havechanged drastically in recent yearsd to suggest that people in the future will havea different perspective on changing demographicshorribers to The New York Times Upfront permission to reproduce this SHc Im a Filipino in disguise as an American citizen On a number line, where would4/5be located? Choose all answers that makea true statement. An item is regularly priced at $35. It is now priced at a discount of 55% off the regular price. What is the new price? Can someone help me with this one plzz!! On September 1, you own 12.5 shares of stock that are worth $149.87. OnDecember 1, the shares are worth $94.87. What was the change in the price pershare of stock? Explain the relationship between energy and economic development. Brainly. Gerry purchases 12 hamburgers at a fast food restaurant for $2.25 each. For half the amount of money, he could purchase 5 buffalo chicken sandwiches. How much does 12 burgers cost? Cho ma trn 4 1 21 0 13 2 1A= Tnh 25AICu 2(3im)Tm ma trn nghch o ca ma trn sau=123020112ACu 3(3im)Gii h phng trnh=+=+=+02347213321321321xxxxxxxxxCu 4(1im)Gii v bin lun h phng trnhsau theo m1 2 31 2 31 2 3222 2 6 62 3 4 5xx xxxxxxxm + = + = + = +HT. adolescents find fault with parents and authority figures because Write an equation in slope-intercept form for the line with slope 5 and y-intercept -2. HELP!!!! I need help 20 POINTS!! PLEASE HELP DUE NOWWW!Gia started to solve the equation 3(x 10) 5x = 2x 26 below. They want to move the variables to the left side of the equation for their next step. Fill in Line 4 and give the property.Line 1: 3(x 10) 5x = 2x 26 Original ProblemLine 2: 3x 30 5x = 2x 26 Distributive PropertyLine 3: -2x 30 = 2x 26 Collect Like TermsLine 4: _______________ _______________