Question: 2. Using Flowgorithm to Design Conditionals and Iterations In this lab, you will be provided with minimal guidance. You learned a lot about Flogorithm

2. Using Flowgorithm to Design Conditionals and Iterations In this lab, you will be provided with minimal guidance. You learned a lot about Flogorithm and how to use it to design simple algorithms. You also designed multiple functions in lab 2 using Flowgorithm. This lab will allow you to explore more about the flowgorithm, and you will learn and substantiate your knowledge of functions, conditional statements, and looping. 3. Number Guessing Game Using Flowgorithm a. Develop a function called randomNumber that takes one integer variable n and returns a random number between 1 and n. The Random function is a built-in function in Flowgorithm that returns a random integer value between 0 and n. b. Test your function is working properly by calling it in the Main and running it a few times. c. Develop another function called get PlayerChoise that will prompt the user to enter a number, get it, and returns it. d. Implement the Game Rule in the Main. If the player number is less than the computer number (random number), ask the player to guess higher. If the player number exceeds the computer number, ask the user to guess lower. If the player number equals the computer number, the user wins. Declare winning and exit the game. The game should continue to run for as many times as half of n. If the user did get the number by the end of the run, they lost it. Declare losing and exit the game.
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
