Program for plurals discussed in class

Assignment Help Business Management
Reference no: EM132151874

Adding -ing to verbs

A program similar to the morphology program for plurals discussed in class. Your program should take a single word as input, modifying it as appropriate, and adding ing to the end of the word. Specifically, given words in the Input column of the following table, it should return the corresponding Output word. The decisions about how to modify the words should be based on the final three letters of the input word. The status of these final 3 letters as vowels (a,e,i,o,u) or consonants (other letters) is important. In some cases, the final letter of the input word should be repeated before adding ing. In some cases, the final letter of the input word should be deleted before adding ing. Remember to use slices to represent parts of words. See slides for details about slices (using both positive and negative integers). Hint: to keep things simple, convert all input to lower case, using word = word.lower(), before running your code on that word.

Input

Output

sit

sitting

seat

seating

write

writing

sleep

sleeping

fly

flying

flee

fleeing

stomp

stomping

be

being

Reference no: EM132151874

Questions Cloud

Perform in less than ideal circumstances : What happens when your mobile application has to perform in less than ideal circumstances?
What kind of economics to scale does the firm exhibit : What kind of economics to scale does this firm exhibit? Suppose the firm double its production what can you say on its new production?
Print screen the content of created file : Copy content of File1.txt to File2.dat (convert it to binary). Print screen the content of created file and add it to your submission.
Discuss problems that law enforcement professional encounter : Discuss problems that law enforcement professionals encounter when computer crime laboratories fail to provide state-of-the-art technology.
Program for plurals discussed in class : A program similar to the morphology program for plurals discussed in class. Your program should take a single word as input, modifying it as appropriate
What impact externalities have on social cost of natural gas : Identify three negative externalities associated with the hydraulic fracturing (fracking) of natural gas. What impact do these externalities have on the social.
Who are the nearest competitors : Read the Fuego Industry business description and answer the questions - Who are the nearest competitors? How will business operation be better than this
Information and examples from your text and your experiences : Support your answers with information and examples from your text and your experiences.
How does the microcosm of the police agency insulate : How does the microcosm of the police agency insulate itself from the community? Explain.

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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