Question: Write a Java program that will request from the user a year based on that year, your program will list all of the US military

Write a Java program that will request from the user a year based on that year, your program will list all of the US military conflicts that were happening in that year (by name and by location) according to the chart below. you will use a method for user input and a method for displaying the military conflict. You may put the selection structure and the display in one method.

Year(s) Name of conflict Location
1562 - 1563 Mutiny at Charlesfort South Carolina, US
1610 - 1646 Anglo-Powhatan Wars Colony of Virginia
1637 - 1638 Pequot War Southern New England
1706 - 1875 Comanche Wars South-Central US and northern Mexico
1754 - 1763 French and Indian War North America
1775 - 1783 American Revolutionary War North America
1812 - 1815 War of 1812 Eastern and Central North America
1820 - 1875 Texas-American Indian Wars Texas, US
1853 - 1854 Erie Railroad War Pennsylvania, US
1861 - 1865 American Civil War US

  • You may choose to use a Utilities class for this assignment
  • You MAY NOT use arrays/ArrayLists or any other data structure for this assignment
  • You MAY NOT use a data class (other than Utilities for this assignment)

A sample run of this program might look like this (user input is in bold):

Enter a year: 1720

The Comanche Wars in the South-Central US and northern Mexico were happening in 1720.

A second run might look like this:

Enter a year: 1776

The Comanche Wars in the South-Central US and northern Mexico and the American Revolutionary War were happening in 1776.

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!