[Solved]Write Code Application Testdivisibility Computer First Solicits User Three Int Values May Q37043062
You are to write code for the application TestDivisibility wherethe computer first solicits
the user for three int values that may be declared as dividend,divisor1 and divisor2. If either
divisor1 is greater than dividend or divisor2 is greater thandividend, the computer should
display a message indicating that the application cannot completebecause one of the divisors is
too large. Otherwise, the computer should indicate that (1) bothdivisors will divide evenly into
dividend, (2) that only one of the divisors divides evenly into thedividend, or (3) that none of the
divisors divides evenly into the dividend. Six sample runs(covering all possibilities) are
provided below.
Run the application using these six sample values where displayshould resemble that of my
sample runs in each case. Assume positive values are alwaysentered; you need not write test
your code to deal with input of negative input values:
Enter dividend: 12
Enter first divisor: 15
Enter second divisor: 6
Unable to complete program… one of the divisors is toolarge.
Enter dividend: 18
Enter first divisor: 7
Enter second divisor: 25
Unable to complete program… one of the divisors is toolarge.
Enter dividend: 28
Enter first divisor: 7
Enter second divisor: 2
28 is divisible by both 7 and by 2.
Enter dividend: 35
Enter first divisor: 7
Enter second divisor: 12
35 is divisible only by 7.
Enter dividend: 80
Enter first divisor: 15
Enter second divisor: 4
80 is divisible only by 4.
Enter dividend: 63
Enter first divisor: 12
Enter second divisor: 22
63 is divisible by neither 12 nor by 22.
Expert Answer
Answer to You are to write code for the application TestDivisibility where the computer first solicits the user for three int valu… . . .
OR

