Question: in java Write a program that repeatedly prompts the user to guess the capital of a randomly displayed state. Upon receiving the user input, the

in java
in java Write a program that repeatedly prompts the user to guess
the capital of a randomly displayed state. Upon receiving the user input,

Write a program that repeatedly prompts the user to guess the capital of a randomly displayed state. Upon receiving the user input, the program reports whether the answer is correct your program must run a minimum of 5 times and display the total number of correct answers. The user's answer is not case-sensitive I have provided the list of states and captals for you "Alabama", "Montgomery), {"las June "Arizona "Phoenix ("Arkansas", "Little Rock"). "California", "Sacramento"). Colorado, "Denver"). {"Connecticut", "Hartford"), "Delaware", "over"). {"Florida", "Tallahassee). "Georgia", "Atlanta"). was", "Honolulu"). ("Idaho","Boise"), 1"111inoi", "Springfield" (Maryland", "Annapolis), Minnesota", Saint Paul"), "Towa","Des Moines"). "Maine", "Augusta"). "Kentucky", "Frankfort". {"Indiana", "indianapolis"). "Kansas", "Topeka. {"Louisiana", "Baton Rouge"}, "Oregon", "Sale"). "Oklahoma", "Oklahoma City), (Ohio", "Columbus), North Dakota", "Bismark"). New York", "Albany"), w Mexico, Santa Fe ew Jersey. "Trenton"). New Hampshire", "Concord"}, evada", "Carson City"). Nebraska", "Lincoln), fontana", "Helena"). Tissouri, Jefferson City"), {"Hississippi", "Jackson"), ("ansachusetter","Boston. Michigan", "Lansing, "Pennslyvanta","arrisburg) "Rhode Island","Providence"), "South Carolina", "Columbia {"South Dakota", "Perze". 1 Tennessee, Nashville), (Texas", "Austin") ("uta", "Salt Lake City), {"Vermont", "Montpelier"}, {"Virginia", "Richmond"), {"Washington", "Olympia"), ("West Virginia", "Charleston"), ("Wisconsin", "Madison"), ("Wyoming", "Cheyenne

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!