Q2) An integer number can be positive, negative, odd, even, prime, or not prime. F'unction NumProperties that has one integer input and multiple outputi. Each of the eutputs will be for one of the above propertick and will have a value of elther Yirthe roperty is truc or IN' if the property is false. Deline the function and call it inside the main method of your class without creating an object of the class. Also prompt to the user if he would like te enter another number or not by entering Y to continuc or N to quite the program.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter12: Adding Functionality To Your Classes
Section: Chapter Questions
Problem 1PP
icon
Related questions
Question
Q2) An integer number can be positive, negative, odd, even, prime. or not prime.
Function NumProperties that has one integer input and multiple oulputis. Each of the
eutputs will be for one of the above propertick and witl have a value of elther Yir the
roperty is truc or IN' if the property is false.
Define the function and call it inside the main nethod of your class without creating an
object of the class.
Also prompt to the user if he would like to enter another number or not by entering
to continue or N to quite the program.
Transcribed Image Text:Q2) An integer number can be positive, negative, odd, even, prime. or not prime. Function NumProperties that has one integer input and multiple oulputis. Each of the eutputs will be for one of the above propertick and witl have a value of elther Yir the roperty is truc or IN' if the property is false. Define the function and call it inside the main nethod of your class without creating an object of the class. Also prompt to the user if he would like to enter another number or not by entering to continue or N to quite the program.
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr