Essay
Write a complete program. Prompt the user for two integers (using Scanner). Assume that the user will enter two well-formatted integers. You do not have to check for that. They should both be greater than or equal to 0 and the first one must be strictly less than the second one; if this is not the case, output WRONG DATA. If that is the case, calculate the exact ratio of the first number divided by the second number (for example, if the numbers are 6 and 10, the ratio is 0.6; if the numbers are 4 and 10, the ratio is 0.4). If that ratio is strictly greater than 0.5, output ABOVE AVERAGE; if it is equal to 0.5 (do not worry about possible rounding errors), output AVERAGE; if it is less than 0.5, output BELOW AVERAGE.
Correct Answer:

Verified
import java.util.Scanner;
public class Q...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
public class Q...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q1: Class Reply inherits from class Post. Write
Q2: Assume that a PlayerNode class has been
Q3: Here is the code for a recursive
Q4: Place the following steps required to calculate
Q6: Complete the code, drawing three more lines
Q7: Give the values that are assigned to
Q8: Assume that a PlayerNode class has been
Q9: Inside the main method, prompt the user
Q10: Assuming a and b are int variables,
Q11: Complete the code, drawing two non-solid concentric