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

Figure p12. 4 shows three uniform objects: a rod, a right triangle, and a square. Their masses and their coordinates in meters are given. Determine the center of gravity for the three-object system.

Answers

The center of gravity for the three-objects system is approximately located

at their center of mass.

The center of gravity of the three-object system is approximately (2.58, 4.75)

Reasons:

The coordinates of the vertices of the objects and their masses are;

The rod:

Vertices, (2, 7), and (9, 7)

Mass, m₁ = 6.00 kg.

The right triangle;

Vertices; (4, 1), (8, 5), (8, 1)

Mass, m₂ = 3.00 kg.

The square

Vertices; (-5, 5), (-2, 5), (-2, 2), (-5, 2)

Mass, m₃ = 5.00 kg

Required;

The center of gravity for the three-object system.

Solution:

The center of gravity is given by the formula;

[tex]\displaystyle X_c =\mathbf{ \frac{X_{c1} \times m_1 +X_{c2} \times m_2 +X_{c3} \times m_3 }{m_1 + m_2 + m_3}}[/tex]

[tex]\displaystyle Y_c =\mathbf{ \frac{Y_{c1} \times m_1 +Y_{c2} \times m_2 +Y_{c3} \times m_3 }{m_1 + m_2 + m_3}}[/tex]

Where;

[tex]X_{c1}[/tex] = The x-coordinates of the center of the rod = 5.5

[tex]X_{c2}[/tex] = The x-coordinate of the centroid of the triangle  [tex]\displaystyle = \frac{4 + 8 + 8}{3} = \frac{20}{3}[/tex]

[tex]X_{c3}[/tex] = The x-coordinate of the centroid of the square = (-5 - (-2)) ÷ 2 - 2 = -3.5

[tex]Y_{c1}[/tex] = The y-coordinate of the center of the rod = 7

[tex]\mathbf{ Y_{c2}}[/tex] = The y-coordinate of the centroid of the triangle  [tex]\displaystyle = \frac{7}{3}[/tex]

[tex]Y_{c3}[/tex] = The y-coordinate of the centroid of the square = 3.5

Therefore;

[tex]\displaystyle X_c = \mathbf{ \frac{5.5 \times 6 +\frac{20}{3} \times 3 +(-3.5) \times 5 }{6+ 3 + 5}} \approx 2.58[/tex]

[tex]\displaystyle Y_c = \mathbf{ \frac{7 \times 6 +\frac{7}{3} \times 3 +3.5 \times 5 }{6+ 3 + 5}} = 4.75[/tex]

The center of gravity for the three-object system is ([tex]X_c[/tex], [tex]Y_c[/tex]) ≈ (2.58, 4.75)

Learn more about center of gravity here:

https://brainly.com/question/6765179

Name two physical properties that could be used to distinguish between cork and lead.

Answers

Answer:

weight and visuals??

Explanation:

A student randomly draws a card from a standard deck and checks.

Answers

and then what? is there anything else to this question

what is the ratio of the sun's gravitational force on you to the earth's gravitational force on you?

Answers

i believe it's 6:10000

A global resources company uses data-intensive, cloud-based simulation software, but users in remote locations find that the responsiveness is poor due to the amount of data being transferred to and from the cloud. In response, the company decides to deploy multiple instances of the application in locations closer to the end users. Which type of technology is illustrated in this example? internet of things beamforming massive mimo edge computing.

Answers

The type of technology illustrated in the given example is called; Edge Computing

The correct answer to the question is Edge Computing. This is because Edge computing, is a type of technology that brings computation and data storage closer to the devices that will receive it.

This way of operation of edge computing described above is way better than the other way of relying on a central location that may be so far away from the device to use it.

Now, the system above is done to make sure that real-time data, does not suffer from latency issues which could be responsible for a degrade in performance of applications.

Read more on Edge Computing at; https://brainly.com/question/23858023

which of the following most closely describes one way the author of "the choice" transforms "the road not taken"? "the choice" drew on the plot from "the road not taken" but did not reflect the same ideals. "the choice" followed the same basic plot as "the road not taken" except that bernadette made the opposite decision that the traveler made in the poem. "the choice" modernized "the road not taken" using the metaphorical situation of a young girl "traveling" though life instead of a real traveler on an actual journey. "the choice" and "the road not taken" both dealt with nature, but that was the only real similarity after the transformation. the story's author changed the poem's characters, plot, and theme.

Answers

The lines of poems are known to pass different messages. The statement that most closely describes one way the author of "the choice" is that "The Choice" modernized "The Road Not Taken" using the metaphorical situation of a young girl "travel.

The poet in the poem seek to explore one road and later come back and explore the other ones but it was impossible. The choice of roads in the poem shows the preference that one has to chose in life. The preference appear to be very attractive.

The poet who undergo the road which was less travelled did regretted his decision. Possibilities exist for any of the road taken. The Choice" is known to be a new version of "The Road Not Taken" s they use some key words to describe the situation of a young girl that travel.

Learn more about The Choice from

https://brainly.com/question/19916526

Oil refining is an example of:

Construction Production
Extractive Production
Domestic Production
Traditional Production

Answers

B. Extractive Production

Which student’s story is more interesting? i saw a snake. At first i thought it was an everyday garter snake. But after i looked at it for a little while, i changed my mind and decided that it was probably a poisonous snake because it had a rattle on its tail. That happened one morning when i was walking. I was hiking on a crisp, clear autumn morning when a snake came slithering toward me. "it’s probably just a garter snake," i thought. As the snake slithered nearer, i spotted a rattle at the tip of its tail. I jumped back with a gasp. The snake was poisonous!.

Answers

There are different aspects to a story. The factors that makes this story interesting is that;

The writing style is exciting, and the author uses precise words.The passage includes sensory details, such  as what the narrator saw and heard.The passage makes it easy to decide how the  narrator felt during the event. The event is told in a reasonable sequence.

There are different factors that can makes a story to be very interesting. Note that a  good story is centered around something that the audience do decides if it is interesting or vital.

A great story is known to comprise of the use of storytelling to make important news more interesting and it is known to be more than just to inform but to also adds value to the related topic.

See full question below.

What makes this story interesting? Check all of the boxes that apply.

The writing style is exciting, and the author  uses precise words.

I was hiking on a crisp, clear autumn morning  when a snake came slithering toward me. "It's  probably just a garter Snake," I thought. As  the snake slithered nearer, I spotted a rattle b at the tip of its tail. I jumped back with a gasp. The Snake was poisonous!

The passage includes sensory details, such  as what the narrator saw and heard.  The passage makes it easy to decide how the  narrator felt during the event. The event is told in a reasonable sequence.

Learn more about stories from

https://brainly.com/question/11728058

Answer:

I was hiking on a crisp, clear autumn morning  when a snake came slithering toward me. "It's  probably just a garter Snake," I thought. As  the snake slithered nearer, I spotted a rattle b at the tip of its tail. I jumped back with a gasp. The Snake was poisonous!

Explanation: just answered it

Which term refers to a secure systems ability to protect against.

Answers

Answer:

Hey mate!

Explanation:

Integrity refers to the protection of information from unauthorized modification or destruction. Ensuring integrity is ensuring that information and information systems are accurate, complete and uncorrupted.

pls mark me as brainliest!!

Which of the following is a complex sentence weegy.

Answers

Answer:

as expected she showed up late

Explanation:

The complex sentence is As I expected, she showed up late. Thus, option (A) is correct.

A complex sentence consists of an independent clause expressing a complete idea and one or more dependent clauses relying on another clause. Typically, a subordinating conjunction (like "because," "if," "as," "after") links these clauses.

Therefore, among the given options, the only complex sentence is "As I expected, she showed up late," containing an independent clause ("she showed up late"), a dependent clause ("As I expected"), and the subordinating conjunction "As," which is common in complex sentences.

Thus, option (A) is correct.

Learn more about Complex sentences here:

https://brainly.com/question/4769492

#SPJ12

The question attached seems to be incomplete, the complete question is

Which of the following is a complex sentence?

A. As I expected, she showed up late.

B. Mark wanted blueberry pie and vanilla ice cream.

C. Sue gave Jim a new racket, and he left for the tennis courts.

D. Eileen bought pants but not a new jacket.

How many gifts were given in the 12 days of christmas brainly.

Answers

The 12 days of Christmas is a very popular song. For us to know how many gifts were given in the 12 days of Christmas, we have to add up all the gifts;

She was given 1 partridge in a pear tree for each of the 12 days: So we multiply 1 x 12=12.

She was given 2 turtle doves on the last 11 days.  So we shall multiply 2 x 11  = 22.

She was given 3 French hens on the last 10 days.  So we shall multiply 3 x 10  =  30.

She was given 4 calling birds on the last 9 days.  So we shall multiply 4 x 9  =  36.

She was given 5 gold rings on the last 8 days.  So we shall multiply 5 x 8 = 40.

She was given 6 geese a-laying on the last 7 days.  So we shall multiply 6 x 7  = 42.

She was given 7 swans a-swimming on the last 6 days.  So we shall mutliply7 x 6  =  42.

She was given 8 maids a-milking on the last 5 days.  So we shall multiply 8 x 5  =  40.

She was given 9 ladies dancing on the last 4 days.  So we shall multiply9 x 4

=  36.

 She was given 10 lords a-leaping on the last 3 days of Christmas. so we multiply 10 x 3=30.

She was given 11 pipers piping on the last 2 days. So we shall multiply 11 x 2=22.

She was given 12 drummers drumming on the last day. So we shall multiply 12 x 1=12

Therefore you sum up all the totals

12+30+22+12....... = 364gifts

Learn more about Christmas from

https://brainly.com/question/25847218

A hot air balloon holds 1,592 cubic meters of helium. The density of helium is 0. 1785 kilograms per cubic meter. How many kilograms of helium does the balloon contain, rounded to the nearest tenth of a kilogram?.

Answers

[tex]density = mass \: volume 1592 = mass 0- 1785 :. \\ \\ \\ mass : 1592 × 0.1785 284- 172 284 . 2 kq ". \\ \\ \\ mass \: of \: helium \: is 284.2

[tex]density=mass\:volume 1592 = mass 0-1785 :. \\ \\ \\ mass : 1592× 0.1785 284- 172 284 . 2 kq ". \\ \\ \\ mass \: of \: helium \: is 284.2[/tex]

Which formula represents a molecule having a nonpolar covalent bond?.

Answers

The formula which represents a molecule having a non-polar covalent bond is: ethane ([tex]C_2H_6[/tex]).

A covalent bond can be defined as a bond that typically involves the sharing of electrons between the atoms of a non-metallic chemical element.

In Chemistry, the two (2) main types of covalent bond include:

Polar covalent bondNon-polar covalent bond

A non-polar covalent bond is a type of covalent bond that is formed when bonding electrons are shared equally between two (2) atoms. Thus, bonding electrons are shared equally in non-polar covalent bonds.

In conclusion, the formula which represents a molecule that has a non-polar covalent bond is ethane ([tex]C_2H_6[/tex]) because the hydrogen atoms are shared equally between the two (2) carbon atoms, as shown in the image attached below.

Read more on covalent bond here: https://brainly.com/question/10429880

A carpenter cut three 4ft 6in shelves from a 14ft board. How long a piece was left over?.

Answers

Answer:

10ft and 6in

Explanation:

hope this helps

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

Accelerated mammary gland development in intellectually disabled females.

Answers

A mammary gland simply means the gland that's located in the female's breasts and it's responsible for lactation.

Your information is incomplete. Therefore, an overview of the topic will be given. It should be noted that males and females have glandular tissue within their breasts.

In females, the glandular tissues develop after puberty. The mammary glands are responsible to produce milk. It is typically regulated by hormones.

Learn more about mammary gland on:

https://brainly.com/question/9861703

Which three statements about the gilded age are true.

Answers

Answer:

i don't know I don't see them

Which of the following holiday does not occur in december?.

Answers

Explanation:

labour day,madaraka day,mashujaa day... does not occur in dece

Ronnie wants to lower his utility bills to save money on his monthly expenses. He discovers that if he replaces his water heater with a solar water heater his monthly utility bills can decrease around 50% to 85%. At the end of the year ronnie wants to calculate the percentage his new solar water heater saved him in the utility bills compared to last year. Ronnie's total utility expenses for this year are $862. 40 and last year the utility expenses were $1935. 67. What percentage did ronnie save on his utlility bills by switching to a solar water heater?.

Answers

Answer:55.4%
I Hope This Helps

The diagram above can be completed with an increase in the membership and political power of which group? the populist party the ku klux klan the congress of racial equality the american civil liberties union.

Answers

The diagram in the image attached below can be completed with an increase in the membership and political power of: C. the congress of racial equality.

Migration refers to the movement of a group of people from one geographical region (location) to another geographical destination, in search of better social amenities, living conditions, and work.

In the United States of America, there was an increase (rise) racial tension due to the following:

Migration of African-Americans to cities. Rise of nativism and religious fundamentalism among the people.

Consequently, the congress of racial equality (CORE) was established in 1942 by James Farmer to serve as an African-American civil rights organization (interracial organization).

In conclusion, the congress of racial equality (CORE) played a pivotal role in the civil rights movement by promoting the use of non-violent tactics to help African-Americans;

1. Secure equal rights with the Whites.

2. End racial discriminations in the United States of America.

Read more on the congress of racial equality (CORE) here: https://brainly.com/question/10908940

Which sentence would improve this conclusion? every town should consider adding bicycle lanes, because it is a great idea. Organizing safety classes for drivers and cyclists will ensure that everyone knows the rules. Do not listen to negative people who complain about anything new. It is true that some people might get injured, but even walking can be dangerous.

Answers

Answer:

B: Organizing safety classes for drivers and cyclists will ensure that everyone knows the rules.

Explanation:

I got it on Ed, hope it helped! And sorry if I'm a bit late!

A bank that has not received payment on a loan can try to get its money back by:.

Answers

A bank that has not received payment on a loan from a borrower can try to get its money back by: hiring a collection agency to retrieve (seize) the money from the borrower.

A loan refers to an amount of money that is borrowed from a lender such as a financial institution (bank) and it is expected to be paid back at an agreed date with a predefined interest.

Generally, a financial institution (bank) lending out a sum of money to a borrower usually require that, the borrower provides a collateral which would be taken over in the event that the borrower defaults (fails) in the repayment of the loan.

Additionally, a collection agency can be hired by a bank to retrieve (seize) the money from the borrower when it hasn't received payment on a loan from a borrower.

Read more on loan here: https://brainly.com/question/25599836

Answer: Hiring a collection agency to seize the money from the borrower

Explanation: correct on a p e x

Select the correct answer. What is the domain of this radical function? a. [3, [infinity]) b. [-3, [infinity]) c. [1, [infinity]) d. [-1, [infinity]).

Answers

The domain of a function is the set of input values the function can take

The radical function is not given; so, I will provide a general explanation

Assume the radical function is:

[tex]f(x) = \frac{1}{\sqrt{12- 2x}}[/tex]

The denominator of the above function cannot be negative.

So, we express the denominator as follows

[tex]12-2x > 0[/tex]

Subtract 12 from both sides

[tex]-2x > -12[/tex]

Divide both sides by -2

[tex]x < 6[/tex]

So, the possible values of x the function can take are less than 6

Hence, the domain of the radical function is [tex][-\infty,6][/tex]

Read more about domain at:

https://brainly.com/question/4173276

Which is the best phrase to eliminate because it is neither precise nor domain specific?.

Answers

The best phrase to eliminate because it is neither precise nor domain-specific is: “other people have created.”

Given the types of words provided, we can assume that the passage dwells on the historical field of knowledge. Domain-specific words are those that are limited to a professional field.

All the words listed are domain-specific except “other people have created.”

The other options provided are:

-“contemporary historian” -“historical expertise” -“other people have created” -“monotonous historical essays.”

Learn more about domain-specific words here:

https://brainly.com/question/794476

Answer:

C.

“other people have created”

Explanation:

whats the answer to the question i have provided

Answers

Answer:

there's no question? sorry

There’s Literally no answer

Graph the image of this figure after a dilation with a scale factor of 3 centered at (−7, −6). Use the polygon tool to graph the dilated figure.

Answers

The dilation transformation gives an image that is similar to the pre-image

but have a different size.

Please find attached the required graph of the image created with MS Excel

Reasons:

Points on the figure are; A(-7, -3), B(-3, -2), C(-4, -5)

The scale factor of dilation = 3

The center of dilation = (-7, -6)

Required:

The graph of the image following the dilation.

Solution:

The given points relative to the center of dilation are;

(-7 - (-7), -3 - (-6)) = (0, 3)

(-3 - (-7), -2 - (-6)) = (4, 4)

(-4 - (-7), -5 - (-6)) = (3, 1)

Following the dilation gives;

3 × (0, 3) = (0, 9)

3 × (4, 4) = (12, 12)

3 × (3, 1) = (9, 3)

Adding the coordinates of the center of dilation to the above relative points of the image gives;

Location of point A' = (0 + (-7) , 9 + (-6)) = (-7, 3)

Location of point B' = (12 + (-7) , 12 + (-6)) = (5, 6)

Location of point C' = (9 + (-7) , 3 + (-6)) = (2, -3)

Therefore, the image is; A'(-7, 3), B'(5, 6), C'(2, -3)

Learn more about dilation transformation here:

https://brainly.com/question/4078841

A two-day moving truck rental from best rentals costs $60 and $0. 35 per mile driven. A two-day moving truck rental from easy movers costs $80 and $0. 25 per mile driven. Let m represent the number of miles driven. Which equation can be used to find the number of miles for which the rentals would cost the same amount? 60 + 0. 35 m = 80 + 0. 25 m 60 m + 0. 35 = 80 + 0. 25 m 60 + 0. 35 m = 80 m + 0. 25 m 60 m + 0. 35 = 80 m + 0. 25.

Answers

The equation that can be used to find the number of miles for which the rentals would cost the same amount is 60 + 0.35m = 80 + 0.25m.

The given parameters:

Cost from best rentals = $60 + $0.35 per mileCost from the easy movers = $80 + $0.25 per mileThe number of miles driven = m

The equation at which the cost for both rentals would be the same is formulated as follows;

$60 + ($0.35)m = $80 + ($0.25)m

60 + 0.35m = 80 + 0.25m

The number of miles is calculated as;

0.35m - 0.25m = 80 - 60

0.1m = 20

[tex]m = \frac{20}{0.1} \\\\m = 200 \ miles[/tex]

Thus, the equation that can be used to find the number of miles for which the rentals would cost the same amount is 60 + 0.35m = 80 + 0.25m.

Learn more about linear equations here: https://brainly.com/question/14323743

Based on the passage, what type of literature is beowulf? which of these lines from the poem describes beowulf?.

Answers

Based on the passage, the lines from the poem describes beowulf is mighty and noble.

According to the question, we are to discuss the poem beowulf and the line that describes this poem.

As a result of this we can see that this poem Gredel which was evil moster was defeated by King of denmark and a beowulf.

Therefore, lines from the poem that describes beowulf is mighty and noble.

Learn more about literature at;

https://brainly.com/question/25873249

just doing this to finish my account

Answers

Answer:

Ppbags where here remember the name

Which of the following factors contributed most to the bolivarian revolutionary movement?.

Answers

Answer:

The rise of a distinct Latin American ethnic identity.

Explanation:

Most of the revolutionary movements were national movements as well. The French Revolution and the American Civil War were an incentive for the Bolivian people to fight for freedom from the occupiers. The nineteenth century was characterized on a global scale by strengthening nationalism and the awakening of national consciousness. Bolivia was also no exception. Following the pattern of other fighters for their own identity, the people of Bolivia sought liberation from the occupiers through the revolution.

Other Questions
What is 35 + 34 ? I cant use calcu pls help me carlos antonio / escribirle / una postal / a su novia / ayer Can you help me with number 45 please ? You are pulling a child in a wagon. The rope handle is inclined upward at a 60 angle. The tension in the handle is 20 N.Part AHow much work does the rope do on the wagon if you pull the wagon 200 m at a constant speed? Plz help I need help Question 3 plz will give 100 point The equation x + y = z relates the whole numbers x, y, and z. How does z compare to x?If it helps, consider an example where you substitute 3 for x, 5 for y, and 8 for z.y is z less than x.y is z more than x.x is y less than z.x is y more than z. PLZZZZ HELP ASAP WILL GIVE BRAINIESTABC Order and Definitions1.elasticized2.stretched3.dam4.interval5.mutter6.stance7.giddily8.swirled9.fragrance10.minutely11.pudgy12.onomatopoeia13.attention *14.Vision*15.Invitation*16.exposition17.narrator18.antagonist19.Protagonist20.EssayABC Order and DefinitionsWrite down 50 affixes containing the sufffix:-tion/ ation-ion In an ecosystem, a deer consumes grass. What percentage of energy will the deer acquire from the grass? 0. 1% 1% 10% 100%. The points (8, 1) and (6, 0) fall on a particular line. What is its equation in slope-intercept form? 1) Identify how voting in a swing state is different than voting in state that is solidly "Red" or "Blue.esA) Voters will be inundated with many and repeated campaign ads.B) Voters will be able to influence the campaigns of the candidates.C) Voters will receive many requests to participate in political polls.D) Voters will drive the issues that determine the national policy platforms.E) Voters will have to process many different and competing campaign strategies. can someone plzzz help me with this (multiple choice ) i have more if anyone is good at this help with this please i need help I NEED HELP PLEASE 15 POINTS13) Given that mEFJ = 70, find mKFG. A) 10 B) 20 C) 30 D) 40 What happens when black holes accrete matter too quickly? Help me please!!!!! ASAP!!! How does compression reduce swelling after an injury? A. It cools the injured tissue. B. It keeps the injury elevated. C. It cuts off blood flow. D. It narrows blood vessels. Please select the best answer from the choices provided. A B C D 10 points. Thank you :) Which five lakes together make up the largest body of freshwater in Canada and the United States? Write the following equations.