[solved]-Write Program C Goal Ask User Number Determine Number Prime Number Use Function Determine Q39041385
Write a program in C++
Your goal is to ask the user for a number and to determine ifthat number is a prime number. Use a function to determine if thenumber is prime.
Your program should have the following:
The name of the program should be Assignment6.
3 comment lines (description of the program, author, anddate).
Ask the user for an integer. Store this result in a variablewith an appropriate name. (1 point)
Write a function that has an integer parameter and determinesif that integer is a prime number. A prime number is divisible byitself and 1. This function should return true if the number isprime and false if the number is not prime. Give this function anappropriate name. (5 points)
Call the function and save the result in a variable. (2points)
Display the result of whether the user entered number is primeor not prime. (2 points)
Expert Answer
Answer to Write a program in C++ Your goal is to ask the user for a number and to determine if that number is a prime number. Use … . . .
OR

