
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
النسخة 7الرقم المعياري الدولي: 1285225562
Programming Logic and Design, Introductory 7th Edition by Joyce Farrell
النسخة 7الرقم المعياري الدولي: 1285225562Draw a structured flowchart or write pseudocode that describes the process ofguessing a number between 1 and 100. After each guess, the player is told that theguess is too high or too low. The process continues until the player guesses thecorrect number. Pick a number and have a fellow student try to guess it by followingyour instructions.
الخطوة 1 من3
The steps required in the game are as follows:
• Generate a random number.
• Get the input from the user.
• Run the loop until the user guesses the correct number.
o If the guess is lower than the generated random number, then display the message Too low and ask the user to guess the number again.
o Else if the number is greater than the generated random number, then display the message Too High and ask the user to guess the number again.
• After breaking out from the loop, display the message that the guess is correct.
الخطوة 2 من 3
الخطوة 3 من 3
لماذا لم يعجبك هذا التمرين؟
أخرى