Returns a list of the index positions

Assignment Help Basic Computer Science
Reference no: EM132184266

What is a function that takes as input a string and returns a list of the index positions of all the vowels in the word.  A vowel is defined as any letter in "aeiouAEIOU".  Use this function in a program that prompts the user for a word or phrase and outputs the index positions of all the vowels. Make the program user friendly. You must NOT print the index positions as a list. Instead, the index positions should be printed one per line as shown below.

For example, the program may execute as follows:

Please enter a word (or phrase) and I will tell you where the vowels are: Hello WORLD!!

The vowels are at positions:

1

4

7

Reference no: EM132184266

Questions Cloud

How are social inequalities and hierarchies reproduced : How might your social class influence how these agents of socialization function? How are social inequalities and hierarchies reproduced?
What strategies can you use to enhance your creativity : Think of a conflict that occurred in a team you were a part of and analyze it. What were the main sources of the conflict?
Disadvantages of three-tiered architecture : Describe the advantages/disadvantages of three-tiered architecture?
Explain what the technology is and how the technology works : Explain the business or technical problem the technology is designed to solve and the application of the technology to the problem.
Returns a list of the index positions : What is a function that takes as input a string and returns a list of the index positions of all the vowels in the word.
Describe barbour and dysons ideas about freedom : Identify potential ways in which your chosen technology can be used either as a means of enabling participation.
Explain the difference between bound and unbound controls : Give an example of filtering as it pertains to Access and 3. Explain the difference between Bound and Unbound Controls. Give examples.
Compare the scan algorithm with dbscan : What are their similarities and differences?Compare the SCAN algorithm with DBSCAN . What are their similarities and differences?
Determine the emerging enterprise network applications : Is the title appropriate? Does the abstract summarize well? Are individual ideas assimilated well? Are wording, punctuation, etc. correct?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What classes should you use to implement it

They are paid their hourly rates for each hour worked; however, if they worked more than 40 hours per week, they are paid at 150 percent of their regular wage for those overtime hours.What classes should you use to implement it?

  Where is the peak profitability for each model

Where is the peak profitability for each model? At what percentile does peak profitability occur? Which model is preferred, and why?

  Construct all the anagrams of a given string

An anagram is a rearrangement of the letters in a given string into a sequence of dictionary words, like Steven Skiena into Vainest Knees. Propose an algorithm to construct all the anagrams of a given string.

  Use two arrays of integers to store two test scores

You must use 2 arrays of integers to store the 2 test scores for each student. You must use a third array to store the average and a fourth array to store the letter grade.

  Paragraph analysis of the routing protocol

Research a routing protocol that was not detailed in the textbook reading. In your initial posting, discuss that routing protocol.

  What is outsourcing

What is outsourcing? Do you think American companies should be allowed to outsource?

  Design a superclass called shape

Design a superclass called Shape

  Added to the first pool at a rate

Two pools are being filled with water. To start, the first pool contains 1140 liters of water and the second pool is empty. Water is being added to the first pool at a rate of 16.25 liters per minute. Water is being added to the second pool at a r..

  How would you decide between the two vendors’ products

The two products are very evenly matched on other key factors, such as performance, features, reliability, and support costs. How would you decide between the two vendors' products?

  Enhance information dissemination

ISUZU company is currently reviewing its security configuration to enhance information dissemination among its branches in Japan. Explain how the security configuration should be undertaken by the IT department.

  Evaluate the efficiency of the comparison sorts

Write a program to read a list of grade point averages (0.0 - 4.0) from a text file and sort them in descending order. Select the most efficient sorting algorithm for your program.

  Write it iteratively and compare the two versions

Quicksort is most naturally expressed recursively. Write it iteratively and compare the two versions. (Hoare describes how hard it was to work out quicksort iteratively, and how neatly it fell into place when he did it recursively.)

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd