OP 06 July, 2022 - 05:44 AM
Suppose you work at a software development company that develops software aimed at education, more specifically educational games.
You are asked to dedicate part of your working time to the development of a simple game in the form of an algorithm that can be used by literate people of any age.
Then comes the idea of developing a guessing game, where a random number between 0 and 10 is generated by the computer and stored for the player to try to guess it.
Please note the following requirements that must be contained in the game algorithm:
1. The game must generate an integer numeric value between 0 and 10 and store it for use during execution.
2. The user must be able to enter as many guesses as he wants until he hits the secret number generated by the computer.
3. If the number entered by the user in each guess is smaller than the secret number, a message must inform that the guess was low, and otherwise, if it is greater than the secret number, it must be informed that the guess was high.
4. Only in the case of a correct guess regarding the secret number, the player must be informed of the correct answer and the game must then be ended.
Note: Additions of features such as language adjustment are optional and do not add a grade, but others such as inserting a guess limit or other ideas that change the original requirements can generate a discount on the grade because they change what must be delivered in the activity.
------------
Ok, it's a college exam and I need to make this algorithm but I really sucks at programming and I really don't know how to do it. Can anyone make it for me? I'll be very grateful.
You are asked to dedicate part of your working time to the development of a simple game in the form of an algorithm that can be used by literate people of any age.
Then comes the idea of developing a guessing game, where a random number between 0 and 10 is generated by the computer and stored for the player to try to guess it.
Please note the following requirements that must be contained in the game algorithm:
1. The game must generate an integer numeric value between 0 and 10 and store it for use during execution.
2. The user must be able to enter as many guesses as he wants until he hits the secret number generated by the computer.
3. If the number entered by the user in each guess is smaller than the secret number, a message must inform that the guess was low, and otherwise, if it is greater than the secret number, it must be informed that the guess was high.
4. Only in the case of a correct guess regarding the secret number, the player must be informed of the correct answer and the game must then be ended.
Note: Additions of features such as language adjustment are optional and do not add a grade, but others such as inserting a guess limit or other ideas that change the original requirements can generate a discount on the grade because they change what must be delivered in the activity.
------------
Ok, it's a college exam and I need to make this algorithm but I really sucks at programming and I really don't know how to do it. Can anyone make it for me? I'll be very grateful.