CSC1110 - Week 8 Exercise
Overview
In this exercise you will gain practice creating and using arrays to solve simple operations.
Instructions
Create an IntelliJ project using the GitHub link provided by your professor. Implement the methods based on the provided JavaDoc. See the sample output for what the fixed code should produce.
Sample Output 1
You will be asked for 3 ints. Enter a value 2 Enter a value 5 Enter a value 8 Number of evens is: 2 Max is: 8 You will be asked for 3 Strings. Enter a word foo Enter a word bar Enter a word cat Was the password entered: false Array of last letters: o r t How many numbers do you want to enter? 5 Enter a value 1 Enter a value 3 Enter a value 5 Enter a value 7 Enter a value 9 First array is 1 3 5 7 9 Shifted array is 9 1 3 5 7 Enter a length 5 Original array: 7 6 1 2 4 Negated Copy: -7 -6 -1 -2 -4
Sample Output 2
You will be asked for 3 ints. Enter a value -2 Enter a value 7 Enter a value 0 Number of evens is: 2 Max is: 7 You will be asked for 3 Strings. Enter a word 12345 Enter a word !@#$% Enter a word hello Was the password entered: false Array of last letters: 5 % o How many numbers do you want to enter? 3 Enter a value -2 Enter a value 0 Enter a value 1 First array is -2 0 1 Shifted array is 1 -2 0 Enter a length 10 Original array: 3 10 7 7 7 3 9 5 4 4 Negated Copy: -3 -10 -7 -7 -7 -3 -9 -5 -4 -4
Submission Instructions
Commit and Push your files to GitHub Classroom.