Create a simple number guessing game in Python that generates a random number between 1 and 100 and allows the user to guess the number. The game should provide feedback to the user based on how close their guess is to the random number, indicating whether they are "getting hot," "getting warm," or "not near" the target number. The game should continue until the user correctly guesses the number or decides to quit.
Requirements:
Requirements:
- The game should randomly generate a target number between 1 and 100 at the start of each game session.
- The game should allow the user to enter their guesses as integers. If the input is not a valid integer, the program should prompt the user to enter a valid number.
- The program should keep track of the number of attempts made by the user.
- The game should provide feedback to the user based on the difference between their guess and the target number:
- If the guess is exactly correct, display a congratulatory message and the number of attempts.
- If the guess is within 5 units of the target number, display "Getting hot."
- If the guess is within 10 units of the target number, display "Getting warm."
- If the guess is farther than 10 units from the target number, display "You are not near the number."
- The user should have the option to quit the game at any time by typing "quit."
- The game should continue until the user correctly guesses the target number or decides to quit. If the user quits, display the correct target number and a farewell message.
- The game should be written in Python and use loops and conditional statements to handle the game logic.