Please code it in Java. And don't use System.out.println and no scanner operations (eg, input.nextInt()). java.util.Arrays class, class character or Class String can be used.

Computational thinking for a software developer/computer programmer is a critical skill that is consistently applied. This lab requires you to develop a solution using Java object-oriented programming that simulates a basketball shootout game. Two players agree to limit the number of ball throw attempts to 3 throws each. The first player will make all three throw attempts (keep track of the successful baskets made where the ball goes into the basket). After the first player completes all three shots, the second player will make all three throw attempts. The player who makes the most baskets (gets the ball in the hoop) will be declared the winner. In the case of a tie, the tie counter is incremented by one. Then, the game is repeated until a winner can be determined. Note that the game can be repeated many times. The losing player of the shootout game will have to give the winning player a move ticket(s). The number of movie tickets is determined by the total number of baskets made by the winner, less the total number of baskets made by the losing player. The losing player gives half of a movie ticket for every tied game (if there were any tied games). If the final calculated number of movie tickets has a decimal value, it should be rounded to the nearest whole number since you can't purchase half a ticket! Example: If the player-1 made a total of 3 baskets, and player-2 made a total of 2, and they had three tied games, the number of movie tickets would initially be 3-2=1, but increased by 3 X 0.5=1.5, making the owed number of tickets 2.5 which must be rounded up to 3 movie tickets.

Community Answer

【General guidance】The answer provided below has been developed in a clear step by step manner.Step1/2The question requires the development of a Java program that simulates a basketball shootout game between two players. The game has a set number of attempts per player (3 in this case). After both players complete their attempts, the winner is determined based on who made the most baskets. If there is a tie, a tie counter is incremented and the game is repeated until a winner is determined.After the game is completed, the program calculates the number of movie tickets owed to the winner. The number of tickets is determined by subtracting the total number of baskets made by the losing player from the total number of baskets made by the winning player. Additionally, half a ticket is awarded for every tied game, and the final number of tickets is rounded up to the nearest whole number.The program is designed to be object-oriented, with a BasketballShootoutGame class representing the game. The class has methods to play the game, calculate the number of tickets owed, and simulate individual attempts at shooting a basketball. The program also makes use of Java's built-in Math class to round up the number of tickets. Finally, the program uses instance variables to keep track of scores and the number of tied games.Explanation:Please refer to solution in this step.Step2/2Here's a possible solution to the basketball shootout game using Java object-oriented programming:import java.util.Arrays;public class BasketballShootoutGame { private static final int NUM_ATTEMPTS = 3; // number of attempts per player private static final double TICKET_PER_TIE = 0.5; // half a ticket for every tie private int player1Score; private int player2Score; private int numTies; public BasketballShootoutGame() { this.player1Score = 0; this.player2Score = 0; this.numTies = 0; } public void play() { // player 1 shoots first for (int i = 0; i < NUM_ATTEMPTS; i++) { boolean basketMade = shootBasket(); if (basketMade) { player1Score++; } } // player 2 shoots second for (int i = 0; i < NUM_ATTEMPTS; i+ ... See the full answer