Problem

Create an HTML form that serves as a random baby name generator. The form should prompt th...

Create an HTML form that serves as a random baby name generator. The form should prompt the user to enter a last name. When the form is submitted a JSP webpage should run that randomly picks the first name of a boy and the first name of a girl and then outputs the random first names coupled with the entered last name. For example, if the last name entered is “Savitch” then if the JSP program randomly selects “Emma” as the girl name and “Homer” as the boy name then the output would be:

If your baby is a boy, consider the name Homer Savitch.

If your baby is a girl, consider the name Emma Savitch.

The boy and girl names should be randomly selected from the files boynames. txt and girlnames. txt which are included in the source code for this book.

These files contain the 1,000 most popular boy and girl names in the United States for the year 2003 as compiled by the Social Security Administration.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 19
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT