Как я могу решить этот вопрос помогите плз
Вопрос1: Начинающая игровая компания позвонила вам, чтобы помочь с прототипом игры, они хотят сначала оценить ваши базовые навыки, поэтому вас попросили разработать простой фиктивный игровой код, который генерирует случайное число между (0-100) и передает это число двум функциям: одна-чтобы определить, является ли число простым, а другая-чтобы проверить, больше ли число 50, и распечатать счет из 2 (1 балл, если число простое, 1 балл, если число больше 50).)
Вопрос 2: после оценки ваших навыков компания обнаружила, что вы очень талантливы, поэтому они наняли вас для разработки реальной игры, Игра представляет собой ту же концепцию первой фиктивной игры, но с некоторыми функциями: -999), одна для игрока и одна для компьютера.
функция такая, что : o 1 балл, если номер игрока является простым o 1 балл, если номер игрока имеет повторяющуюся цифру ( пример: 121 : есть повторяющаяся цифра, которая является цифрой [1] ) . o 1 балл для игрока, который имеет большее число.
игрок ) и указать, кто является победителем или это ничья.
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)
Что я уже пробовал:
Я пытался, но слишком много раз терпел неудачу
CHill60
Это похоже на домашнее задание. Мы не будем писать за вас домашнее задание, потому что на самом деле не будем помогать вам учиться.
Опубликуйте код, который вы действительно пробовали, и расскажите нам, что пошло не так. Я предлагаю вам просто начать с вопроса 1 Сначала
Richard Deeming
"Натыкаясь" на ваш домашний вопрос, вы не измените того факта, что мы здесь не для того, чтобы делать домашнее задание.
Ваша домашняя работа настроена на то, чтобы проверить, что ты узнали, а не то, что знают некоторые случайные люди в Интернете.
Если вы действительно не знаете, с чего начать, то поговорите со своим учителем. За это им и платят!
KarstenK
Какова цель этого домашнего задания? Судя по размеру, это важная часть в вашем обучении. Это для вас домашнее задание на выпускной экзамен?