Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5 4 3 7 6 4 . 3 8 9 6 9 3 2 qx 3 zqy 7 Jump to level 1 Print userNum 1

543764.3896932 qx3zqy 7
Jump to level 1
Print "userNum1 is negative." if userNum1 is less than 0. End with newline.
Assign userNum2 with 2 if userNum2 is greater than 13. Otherwise, print "userNum2 is less than or equal to 13.". End with newline.
import java.util.scanner;
public class UserNums {
public static void main (String [] args){
int userNum1;
int userNum2;
Scanner input = new Scanner(
System.in);
userNum1= input. nextInt();
userNum2= input.nextInt ();
V** your code goes here */
}
system.out.println("userNum2 is "+ userNum2);
image text in transcribed

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

Step: 3

blur-text-image

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions

Question

6. Discuss the steps involved in conducting a task analysis.

Answered: 1 week ago

Question

8. Explain competency models and the process used to develop them.

Answered: 1 week ago