here they are
High-Low: Write a program that allows the computer to randomly generate a number between 1 and 1000. The user will then enter a guessed value. If the guessed value is lower than the secret number, the computer should tell user to “enter a higher value”. If the guessed value is greater than the secret number then the computer should tell the user to “enter a lower value”. This process should continue till the user guesses the secret value. Then the final output should say: ” CORRECT! You guessed the secret number which is ….” “It took you # of guesses” (Hint: you need to use while loop for the guessed value. Also you need to create a counter to count the number of guesses)
Password: Write a program that maintains two parallel arrays. The first array holds five usernames, and the second array holds five passwords. The program should read the five usernames and password pairs, and then store those values into the parallel arrays. After the arrays have been loaded, the program should behave as a login screen, prompting for username and password. The program should respond appropriately with one of three output messages. If the username does not match one of the values in the username array, then the message should be” Username not found.” If the user name is found in the user name array, but the password does not equal the parallel value in the password array, then the message should be ” Username and password do not match.” If the username is found and the password matches the parallel value in the password array, the message should be “Access granted” .