Using Visual Studio develop a number guessing game. The game program should: Generate a random, 5 digit number as a string. The player needs to try…

Repeat step 2 and 3 until the player guesses the whole 5 digit number correctly (or, you can allow the player to do 10, 15, 20 tries). If the player guesses it correctly, display the message “You guessed it correctly!” If the player doesn’t guess it within the limited number of tries, display the message “You couldn’t guess it. Game over.”import java.util.Random;import java.util.Scanner;public class Guess {/*** @param args*/public static void main(String args) {// TODO Auto-generated method stubint maxTries = 10;Random r =…