Question: code in C++ please - Write a function called getValidUserinputPosNumGTO that allows a user to enter in an integer and validated that the number is

 code in C++ please - Write a function called getValidUserinputPosNumGTO that
code in C++ please

- Write a function called getValidUserinputPosNumGTO that allows a user to enter in an integer and validated that the number is >0. It must have a pass by reference parameter that will store the value selected by the user. (15 points) void GetValiduserInputPosNumGre(long int \&num); - Write a function called CountOfDivisors that takes a number as a value parameter. It returns the number of the divisors that the number has. (15 points) int Countofoivisors(1ong int num); - Write a function called IsSquare that takes a number as a value parameter. It returns true if the number is a square and false otherwise using the property that " all square numbers is (except 0 ) have an odd number of positive divisors, while other natural numbers have an even number of positive divisors." https://en.wikipedia.org/wiki/Square number : ( 10 points) bool. Is Square(long int num): - Write a function called DisplayPrime that takes a number as a value parameter. It calls IsPrime and displays if the number is prime. (All prime numbers only have 2 divisors) (10 points) - Write a function called Is Prime that takes a number as a value parameter. It returns true if the number is prime and false otherwise. is prime. (All prime numbers only have 2 divisors) (10 points) - Add comments wherever necessary. (5 points)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!