Count Occurrences in Seven Integers Using Java Single Dimension Arrays

profiletapastdas
cf_7count_occurence_in_seven_instructions.pdf

1

Count Occurrences in Seven Integers Using Java Single Dimension Arrays In this assessment, you will design and code a Java console application that reads in seven integer values and prints out the number of occurrences of each value. The application uses the Java single dimension array construct to implement its functionality. You can use either the Toolwire environment or your local Java development environment to complete this assignment.

The requirements of this application are as follows: The application is to read seven integer numbers entered by the user from the keyboard. Using Java single dimension arrays, the application counts the number of occurrences of each of the seven values. The application then the prints out the number of occurrences of each of the seven values to the screen.

Assume that the user always entered correct information so there is no need to validate user input in your application.

Use these three input values to test your application: 12 23 44 22 23 22 55.

Successful completion of this assignment will show the correct occurrence count of each of the seven entered integers when the application is run. Your program output should look like this sample output:

2

Follow these steps to complete this assignment:

1. Create a NetBeans Java console application project called “U7A1_NumOfOccurrInSevenInts”.

2. Develop the application to meet the stated requirements.

3. Compile and test your application using the provided input data.

4. Make sure to document the result of your testing by taking screenshots of the result of running your application similar to the provided sample output. One screenshot is required for this assignment.

5. Explain the approach you took to complete this assignment and the major decisions you made. As part of your explanation, be sure to identify the fundamental Java constructs you used that were specific and relevant to your submitted program.

Deliverables Use the submission template available in the resources (WeekXSolutionSubmissionTemplate.docx) to complete and submit your deliverables. Your

3

deliverables in the attached submission template should include:

1. Your work (Netbeans project zip file + copy of *.java source code)

2. A screenshot of the result of testing your application. See the examples above.

3. Explain the approach you took to complete this assignment and the major decisions you made. As part of your explanation, be sure to identify the fundamental Java constructs you used that were specific and relevant to your submitted program.

  • Count Occurrences in Seven Integers Using Java Single Dimension Arrays
    • Deliverables