Question: Consider the following program: The program will request the user to input a number in variable num. It will then verify if the entered
Consider the following program: The program will request the user to input a number in variable num. It will then verify if the entered value is a whole number (integer). If it's not, the program will display "Error. Not an integer" and prompt the user to try entering a number again. After the user manages to enter the correct number, if the number entered is between 1 to 100 inclusive, display "Fizz" if the number is divisible by three. Otherwise, display "Buzz" if the number is divisible by five. Other than that, if the number is divisible by both three and five, "FizzBuzz" will be displayed. Lastly, if none of these conditions matches, then just display the number. The user can type 'Quit' to stop the program or enter the next number to repeat the program with the new keyed-in number. HINT: type(variable) will return the datatype of a variable. Example of the output: 1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, FizzBuzz... Write the flowchart for the program.
Step by Step Solution
There are 3 Steps involved in it
Answer I can describe the flowchart for the program you described Start The program starts and the u... View full answer
Get step-by-step solutions from verified subject matter experts
