Question1: A Start-up gaming company called you to help with a prototype game, they want to evaluate your basic skills first so you were asked to design a simple dummy game code that generates a random number between (0-100) and pass the number to two functions, one to determine if the number is prime and the other to check if the number is larger than 50, and print out the score out of 2 (1 point if the number is prime, 1 point if the number is larger than 50)
Question 2: after evaluating your skills the company found that you are very talented, so they hired you to design a real game, the game is the same concept of the first dummy game but with some features: -999), one for the player and one for the computer.
function such that : o 1 point if the player number is prime o 1 point if the player number has a repeated digit ( Example: 121 : have a repeated digit which is digit  ) . o 1 point for the player who has the bigger number.
player ) and state out who is the winner or it is a tie.
Question 3: The game that you designed previously accomplished a huge hit in the market, so the company decided to develop a prototype for a new game and of course they called YOU! the new game is actually a guessing game such that: The program should generate a random number between (100 and 999) at the beginning and save it. The user has only one try to enter a 3-digit number and if any digit of the entered number matches with any digit of the random generated number he wins otherwise he loses. The program should display the two numbers and the matched digit if he wins, otherwise print you lost. The program should give the opportunity to the user to play again with a new generated number if he wants.
Question 4: The feedback of the new game was surprising to the company, so they decided to publish the new game to the store but with few changes and guess what…they called YOU! the game is still a guessing game where the player needs to figure out the random number generated by the program but they want it to be a little more difficult to win such that The program should generate a random number between (100 and 999) at the beginning and save it. The user has unlimited trials until he guesses the number correctly. The program should call a hint function that generates and prints a hint to the player, the hint is the product of the three digits (example if the generated number is 123 the hint is 6 since 1*2*3=6) A function should compare the two numbers, and if they match print out you win, if not then asks the user to enter a new guess number along with the trial number.
Question 5: Unfortunately, the last game you developed didn’t have an impact in the market, and most of the reviews states that the game is still easy to win, so the company decided to download an update for the game and I think you already knew who they called…YOU! The update of the game is mainly 4 changes: The generated number is between (1000,9999) The hint is the sum of the number. (Example: if the generated number is 1234 the hint is 10 since 1+2+3+4=10) The user has only ten trials to figure out the exact number otherwise he loses A new hint is generated with each trail using another hint function, the hint is the number of correct digits of the last guess (Example: if the generated number is 1234 and the user entered 1324 then print 2 digits are correct and give him the next trial)
What I have tried:
I have tried but failed too many times