Click here to Skip to main content
13,901,425 members
Rate this:
Please Sign up or sign in to vote.
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
Updated 26-Apr-18 9:23am
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?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I'll give you the best help you'll ever get:

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.
Rate this: bad
Please Sign up or sign in to vote.

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.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web02 | 2.8.190306.1 | Last Updated 26 Apr 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100