13,735,328 members
See more:
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 [1] ) . 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
Posted 26-Apr-18 1:14am
Updated 26-Apr-18 9:23am
v2
CHill60 26-Apr-18 7:27am

This looks like homework. We won't write your homework for you because we wouldn't actually be helping you learn.
Post the code you have actually tried and tell us what went wrong. I suggest you just start with Question 1 first
Richard Deeming 26-Apr-18 14:32pm

"Bumping" your homework question isn't going to change the fact that we are not here to do your homework.

Your homework is set to test what you have learned, not what some random people on the Internet know.

If you genuinely don't know where to start, then talk to your teacher. That's what they're paid for!
KarstenK 27-Apr-18 9:39am

What is the purpose of this homework? From the size is it an important piece in your learnings. Is it the final exam homework for you?

## Solution 1

If you think you want to be a software developer, you'll dig into this and have a great time solving the problems - and learning.

Otherwise, if it's too much to do as homework, it'll be even more so when you're out working in the real world. Find something else to do for a living. Something that you like, or at least, that you're capable of.

Programming isn't for everyone - and many professional programmers never took a course to learn it - they were drawn to it for the sheer pleasure of it.

If this sounds harsh, it's not as harsh as a lifetime spent wallowing in incompetence and the fear of being found out.

## Solution 2

The purpose of homework is having you practicing and getting familiar with the kind of requests you will get in future as a professional programmer. If we do your homework for you, it defeat the main purpose of homework.
This homework is not even complicated, it is just larger than usual. If you look carefully, it is already split into 5 smaller questions. try to answer questions one at a time in order.

Nota: Real like requirement are much more complicated because they are almost never consistent, so you have to workout what is what, and the customer often describe what he want in a disorganized way. You have to put pieces together and make them logical and consistent.

If you can workout anything, you need to have a talk with your teacher.
If you have a specific problem, explain what it is, show your code and we will be happy to help.
v2

Top Experts
Last 24hrsThis month
 OriginalGriff 282 Richard MacCutchan 250 Patrice T 146 Eric Lynch 113 KarstenK 102
 OriginalGriff 5,284 Richard MacCutchan 1,854 Patrice T 1,397 CPallini 1,189 Dave Kreskowiak 1,150