Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

code please~~ use nested Question: Today you are commissioned to write a Java program that will prompt for and read 3 integer values ni, n2

image text in transcribed
code please~~
use nested
Question: Today you are commissioned to write a Java program that will prompt for and read 3 integer values ni, n2 and n3 entered by the user, compare the three numbers, and determine the relationship between the 3 numbers based on the specifications that follow. Note, there can be more than one category the numbers satisfy. Be sure to use the same format and wording as in the sample runs in the table below. Using a series of compound if statements (no if/else or nested if required or needed) determine which condition(s) the 3 numbers satisfy. 1. If the 3rd number is greater than the 1st and 2nd number display n3 > ni and n3 > n2 2. If the 3rd number is smaller than the 1st and 2nd number display n3 a multiple of 5 where is the sum of the 3 numbers 5. Finish off with the message Finished! The box below illustrates how your program should behave and appear. REMEMBER in the output: . is a space and is a new line. Text in green is user input Waiting for 3. integer numbers: 7.5.10. Waiting for 3. integer numbers: 7.18 5. n3 >nl and n3>n2. Finished! n3 <.nl and n3 n2. n1 n2 a multiple of finished waiting for integer numbers: ni are all the same note you to expect perfect user who will always enter numbers that is do not verify validity input. use libraries other than java.util.scanner prohibited. your program must work any values entered just ones in samples above. final thought remember solution case-sensitive space-sensitive fulfill above instructions carefully precisely>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

Question What is a Roth 401(k) feature?

Answered: 1 week ago