Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions