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

  Designing the erd

Design an ERD consisting of the Order and Customer entity types connected by 1-M relationship from the Customer to Order.

  The most important roles in systems development

How have the roles of systems analysts and end users changed in the past 20 years? What are the benefits and drawbacks to these changes.

  Mutual authentication and key establishment protocol

Assume a server-assisted mutual authentication and key establishment protocol. Suppose that Alice and the Server share the pairwise symmetric key KAS; however Bob and Server share a pairwise symmetric key KBS.

  Stack pointer and program counter

The content of top of a memory stack is 5320. The content of stack pointer SP is 3560. A two-word call subroutine instruction is situated in the memory at address 1120 followed by the address field of 6720 at location 1121.

  Hardware support to memory management

Study any two multicore processor architecture and discuss the following features briefly

  What is the test plan

What information should be included in the comments at the top of a program? What is a test plan? I am looking for general reply not specific to this or any other program.

  Developing a single neural network

The team member A proposes that you must develop a single neural network which may handle all these stocks. However the member B insists that you have to design the five networks (one for each stock).

  Concept of aloha

A large population of the ALOHA users manage to produce the 50 requests/sec., involving both the originals and retransmissions. Time is slotted in units of 40 msec. State the chance of success on the first attempt?

  Dns servers and dhcp servers

Assume that both the DNS servers and the DHCP servers send your client PC and IP addresses. Write down the differences between these two addresses.

  Four methods to provide data backup

What are the four methods used by the servers in order to provide the data backup, decrease the response time, and decrease the network and the server access time?

  Factors in selecting suitable data type

Explain the factors in selecting the suitable data type for some value? Which of these is most significant?

  Find whether the numbers would be an arithmetic

assume you are given a list of n integers in random order. Describe an algorithm that will determine whether the numbers would be an arithmetic progression if they were sorted.

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