Aprime number is a number that is only evenly divisible by itself and 1. for example, the number 5 is prime because it can only be evenly divided by 1 and 5. the number 6, however, is not prime because it can be divided evenly by 1, 2, 3, and 6. design a boolean function called isprime, that accepts an integer as an argument and returns true if the argument is a prime number, or false otherwise. use the function in a program that prompts the user to enter a number and then displays a message indicating whether the number is prime. the following modules should be written: getnumber, that accepts a ref to an integer, prompts the user to enter a number, and accepts that input isprime, that accepts an integer as an argument and returns true if the argument is a prime number, or false otherwise showprime, that accepts an integer as an argument , calls isprime, and displays a message indicating whether the number is prime the main module, that will call getnumber and showprime

Solved
Show answers

Ask an AI advisor a question