Write a program that genrerates random sentences from this grammer:
<sentence> ::= <noun phrase><verb phrase><noun phrase>.
<noun phrase> ::= <article><adjectivelist><noun>
<article> ::= a | an | the
<adjective list> ::= <adjective>, <adjective list>
<adjective> ::= green | red | large | small
<noun> ::= chair | table | door | room | frog
<verb phrase> ::= <adverb list><verb>
<adverb list> ::= <adverb><adverb list>
<adverb> ::= quickly | slowly | greedily
<verb> ::= ate | bit | jumped over | yelled at
This program should randomly choose an alternate path when necessary. ( Use Random class to generate random numbers.) Use recursion for all looping in this program. Use no explicit loops. Feel free to add more nouns, verbs, adjectives, and adverbs to your grammer.
* Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
*Algorithms for the methods needed to implement the behaviors of your objects/classes
*A thorough test plan(>= 5 test cases) and a test execution listing for all test cases listed in the test plan.
*All .java source and .class files.
--I need this to run in a command window or within JPadPro, I need it to be fairly simple
nothing to flashy. And Please bid the total amount you need to complete this, hourly bids will show you didn't even read this.
Windows, I will compile/run it in JpadPro