Question: Problem: Write the Java program for the given pseudocode. Using exactly 6 integer variables, 1 integer constant and 1 Scanner variable make sure to fulfill

 Problem: Write the Java program for the given pseudocode. Using exactly

Problem: Write the Java program for the given pseudocode. Using exactly 6 integer variables, 1 integer constant and 1 Scanner variable make sure to fulfill the following points: 1. Declare 6 unassigned integer variables a, b, c, d, num, den. 2. Declare 1 constant integer called CONSTANT and set it to 4. 3. Declare 1 Scanner variable that will record keyboard inputs. 4. Prompt the user in the console for 4 integers whose values you store in a, b, c and d. 5. Assign to num the result of (a % d + c % b) X CONSTANT 6. Assign to den the result of b xd x CONSTANT 7. Output to the console a blank line followed by the message Modified numerator is Modified denominator is Strange calculations!!! where and are the values stored in the corresponding variables. Based on the previous specifications your program should look and behave exactly as displayed in the case below. Your program should work for any values entered by the user, not just the ones in the sample. REMEMBER in the output: is a space and is a new line. Text in green is user input. Input 4. positive integers: 102.3.4 Modified numeratoris 8. Modified denominator is 32. Strange calculations!!! Note 1: You are to expect a perfect user who will always enter positive integers; 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 sample box above. Note 3: Final thought, remember that your solution is case-sensitive and space-sensitive, fulfill the above instructions carefully and precisely

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!