Question: Problem: Write a Java program that will prompt for and read 3 integer values entered by the user. The program will check if the first


Problem: Write a Java program that will prompt for and read 3 integer values entered by the user. The program will check if the first number forms an even sum or an odd sum of the second and third number, or not. Following this calculation, you are to assemble a combination of at most 3 if, else if or else to fulfill the requirements described below. a 1 1. If the first number entered is the sum of the second and the third number, and it is an even number, display the message: Seems like I have an even sum. 2. If the first number entered is the sum of the second and the third number, and it is an odd number, display the message: Seems like I have an odd sum. 3. If the 3 numbers entered, do not form any of the two sequences above, display the message: Seems I have no chance with these numbers! Based on the previous specifications your program should behave and look exactly as shown in the cases below. Your program should work for any integers entered by the user, not just the ones in the samples. o Note that in the output symbol is a space and His a new line character. All words except for user input (in blue) must be exactly as indicated in the sample outputs. Any extra "spaces and/or "new lines will be graded a wrong answer. Program Sample outputs Enter.num1: 0254 Enter.num2: 94 Enter.num3: 164 Seems like I have an odd sum.d Enteronum1: 01204 Enteronum2: 0564 Enteronum3: 0644 e Seems like I have an even osum. Enteronum1: 0172 Enteronum2 : 104 Enteronum3: 0684 Seems I have no chance with these onumbers! This program can be broken down into four major components; variable declaration, user input retrieval, processing the lengths and displaying outputs based on stated conditions. Note 1: You are to expect a perfect user who will always enter 3 integers greater than 0; that is, do not verify the validity of user input Note 2: The use of libraries other than java.util.Scanner is prohibited. Your program must work for any integer values entered, not just the ones in the samples above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
