Make short story consisting of several of these sentences

Assignment Help Computer Engineering
Reference no: EM1328368

Write an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition. Create a sentence by selecting a word at random from each array in the following order: article, noun, verb, preposition, article and noun. As each word is picked, concatenate it to the previous words in the sentence. The words should be separated by spaces. When the final sentence is output, it should start with a capital letter and end witha period. THe application should generate 20 sentences and output them to a text area.

The article array should contain the articles "the", "a", "one", "some", and "any"; the noun array should contain the nouns "boy", "girl", "dog", "town" and "car"; the verb array should contain the verbs "drove", "jumped", "ran", "walked" and "skipped"; the preposition array should contain the prepositions "to", "from", "over", "under" and "on".

After preceding application is written, modify it to produce a short story consisting of several of these sentences. (How about the possibility of a random term-paper writer?)

Reference no: EM1328368

Questions Cloud

A discussion regarding a specific case study : Korea is a prime market for beef exporters. Grazing space for cattle in Korea is non-existent, so beef is not raised locally. As a result, beef is scarce in Korea and Koreans are willing to pay a premium for even the smallest morsel. Seok, a Korean b..
Research software applications and information systems : Research software applications and information systems available for the various organizational departments within a company, such as accounting, finance, HR, marketing, and management.
Explaining integrative leadership and moral leadership : What is integrative leadership? What is moral leadership? What is change leadership?
Explain communication with foreign staff : Explain Communication with foreign staff and what obligation does your company have to employ domestic workers before looking abroad
Make short story consisting of several of these sentences : Write down an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.
Organizations perform marketing related data capture : Check two ways that healthcare organizations perform marketing related data capture that do not violate any regulatory stipulations. Analyze and discuss how these might change in the future and why.
As a government needs to increase tax income : As a government needs to increase tax income, it will often increase the sales tax on gasoline.
Difference in the federal and state employment laws : Provide at examples of an employment protection that is provided by your state system, (Texas) but not by the federal system.
Describe the economic impact of the change of tesla motors : an you describe the economic impact of the change of Tesla Motors since it's perception in 2003.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Scripts_new directory and dir.txt file

Write down the following folder structure on C: drive of your computer: Scripts_New, Networking, User.

  What types on a lan and the type of software licensing

Discuss role of each of the following server types on a LAN and the type of software licensing with which the software should be purchased.

  Describing the car structure

Write down a definition statement which describes a Car structure variable initialized along with the following information: Make: Ford Model: Mustang.

  Aspects of effectiveness and robustness in software

Aspects of effectiveness and robustness in software

  Demonstrate that the expected search time for hashing

Demonstrate that the expected search time for hashing

  Problem on bubble sort algorithm

Problem on Bubble sort algorithm

  Write down a unix shell script

For an example, if I want to search for a text file/script that contains the most number of for loop statements, and have it displayed on the screen, How will I do that?

  How much of a disadvantage computer scientists have

Philosophy is deeply rooted in the History of Computers starting with Leibniz and his concept of binary. Leibniz's dream imagines Armchair Philosopher to be left alone with his thoughts while machines take care of all the other menial tasks requir..

  What are the potential benefits of management projects

What are the potential benefits of management projects. What strategies must companies follow to achieve positive results in knowledge management projects.

  How to create a visual studio 2008 asp .net web site

If result is a positive number, display the answer in Arial font. The Label server control should also display an error message to the user if they tried to divide by zero on first Web Form.

  Impact on the quality of software available for used

Will commercial software manufacturers be justified in raising their prices to make up for revenue lost to open source competitors? Do you think that strategy will be effective.

  Using the models in system design

In the System Analysis and Design: Models are used extensively in the wide variety of the technical occupations beyond the information technology.

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