Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

hi evry body ,, I have some problem to answer this prog. And my teacher he dosn`

ID: 3639198 • Letter: H

Question

hi evry body ,,
I have some problem to answer this prog.
And my teacher he dosn`t teach good ..:((

I`m Novice in java .. :$

............................

Imagine that somebody wants to figure out a secret code to open a locked door and he/she has 5 tries before offering his/her final guess. Suggesting the followings try to help by solving this problem using java.
1. The code length is 10 characters.
2. It consists of vowels only.
3. The code is {U, A, O, A, O, E, I, E, I, U}

Hints:
1. You may use 2D array
2. After each try print out the number of the mach digits.
3. For a good help you may tell the user the positions of incorrect digits after each try.

....................................

& THANK`s A LOT .. :*

Explanation / Answer

you have to change the password yourself, hope this helps you along your way. import java.util.Scanner; public class Password { static boolean areTheSame(char[] arr,char[] arr2) { for(int i = 0;i