View the step-by-step solution to:

The Java class named StatesDataEntry displays the State bird and flower:

I need help to design a Java program named StatesDataEntry and a test Java class named TestStatesDataEntry.


The Java class named StatesDataEntry displays the State bird and flower:

-use Java classes to their full extent to include multiple methods and at least two classes

-The program prompts the user to enter a State and prints both the State bird and flower.

-State data entry is case insensitive (Users could enter Maryland, maryland, MARYLAND or any other possible combination of lower and upper case characters)

-States data may also contain leading and trailing white spaces

-The program continues to prompt the user to enter a state until "None" is entered

-After all data has been entered by the user, the program displays a summary report of all state requests.


The Java class named TestStatesDataEntry:

constructs at least 3 States objects. For each of the objects constructed, demonstrate the use of each of the methods



Here is a sample run:



Enter a State or None to exit: 

Delaware 

Bird: Blue Hen Chicken 

Flower: Peach Blossom 


Enter a State or None to exit: 

New York

Bird: Eastern Bluebird

Flower: Rose 


Enter a State or None to exit: 

None


**** Thank you ***** 

A summary report for each State, Bird, and Flower is:

Delaware, Blue Hen Chicken, Peach Blossom 

New York, Eastern Bluebird, Rose

Please visit our site again!

Top Answer

Output: Enter a State or None to exit:   New York Bird: eastern... View the full answer

state-o.PNG

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask a homework question - tutors are online