Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Problem 3: Is Factor . Write a program that has the class name IsFactor. The program should ask the user to enter two integers (assume
Problem 3: Is Factor . Write a program that has the class name IsFactor. The program should ask the user to enter two integers (assume both will be greater than 1). . The program should determine if the smaller of the two numbers is a factor of the larger of the two (regardless of which order the numbers are entered). Based on whether the smaller is a factor of the larger, print out the appropriate message. You may assume the user will always enter two different integers so one will be larger and one will be smaller . As a reminder, a factor of one number is any whole number that divides it evenly. So, 8 is a factor of 64, since 64 is evenly divisible by 8. Enter the first number: 5 Enter the first number: 35 Enter the second number: 65 Enter the second number: 2 5 is a factor of 65 2 is not a factor of 35
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started