Question: Is Multiple Overview For this daily, write a program that will determine if a positive number is a multiple of another positive number. A CPP

Is Multiple
Overview
For this daily, write a program that will determine if a positive number is a multiple of another positive number.
A CPP file (is_multiple.cpp) has been provided. It contains the declaration for two integer variables (num1 and
num2), and code that will ask the user to enter two integer values.
Add code to int main() that will first determine if num1 and num2 both contain positive values. If either value is
not positive, display *** Invalid input: one or both values is not positive. If both values are positive, determine
if num1 is a multiple of num2. If num1 is a multiple of num2, display "[num1] is a multiple of [num2]".
Otherwise, display "[num1] is NOT a multiple of [num2]".
[num1] is the value the variable num1 contains and [num2] is the value the variable num2 contains.
Print a newline at the beginning and end of the output.
File You Must Submit
Place the completed program code in a source file named is_multiple.cpp
Output
The output that is produced by the program will vary based on the values that are entered when the program is
executed. The output that is shown below is what the program will produce when it is run in an environment
such as Dev C++ or XCode. When it is run through the Auto Grader, the portion that asks for the integer values
WILL NOT show the values that are entered.
 Is Multiple Overview For this daily, write a program that will

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!