1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Liono4ka [1.6K]
4 years ago
4

Print "userNum1 is negative." if userNum1 is less than 0. End with newline.

Computers and Technology
2 answers:
natita [175]4 years ago
8 0

Answer:

if (userNum1 < 0 ){

         System.out.println("userNum1 is negative.");

      }

      if (userNum2 > 11){

           userNum2 = 5;    

      }

      else {

         System.out.println("userNum2 is less than or equal to 11.");

      }

Explanation:

Just changed the numbers to fit with your question. Code is the same though.

slava [35]4 years ago
3 0

Answer:

//Scanner class is imported to allow the program receive user input

import java.util.Scanner;

//The class is defined by name UserNums

public class UserNums {

   //The main method which signify the beginning of program execution

public static void main (String [] args) {

   //Scanner object 'scan' is created

   Scanner scan = new Scanner(System.in);

   // prompt the user to enter first number

   System.out.println("Enter first number:");

   //first number is assigned to userNum1

   int userNum1 = scan.nextInt();

   // prompt the user to enter second number

   System.out.println("Enter second number:");

   //second number is assigned to userNum2

   int userNum2 = scan.nextInt();

   // userNum1 = 1;

   // userNum2 = 14;

   

   //Print userNum1 is negative if userNum1 is less than zero

   if (userNum1 < 0){

       System.out.println("userNum1 is negative.");

   }

   //Convert userNum2 to zero if userNum2 is greater than 11

   if (userNum2 > 11){

       userNum2 = 0;

       System.out.println("userNum2 has been converted to 0.");

   } else {

       System.out.println("userNum2 is less than or equal to 11.");

   }

   }

}

Explanation:

You might be interested in
What number will be output by the console.log command on line 5?
lidiya [134]

Answer:

16

Explanation:

If you follow the line of code and add 1, 2, and then 3, 10 + 1 + 2 + 3 = 16.

Please, need Brailliest. if you need any further assistance let me know.

8 0
3 years ago
If you give an actual answer I'll give brainliest​
olga2289 [7]

Answer:it would be  200 and 470  in that box

Explanation:

8 0
3 years ago
Read 2 more answers
Cisco Next Generation Intrusion Prevention System (NGIPS) devices include global correlation capabilities that utilize real-worl
madreJ [45]

To configure and set up Sourcefire NGIPS–managed devices, you must define blocking rules, set up the IPS to capture traffic, and, if necessary, block untrusted IP addresses. Sourcefire NGIPS is widely deployed in many enterprise environments that help protect the perimeter from intrusions.

Review the Sourcefire Installation Guides to set up a Defense Center and managed devices. The appliance will be configured as a Next Generation firewall.

Log in to the Sourcefire management interface and select the device you have configured.

Sourcefire NGIPS Interfaces Tab

Enter the specific details within the Device section. Click the pencil icon to edit the device-specific details.

Sourcefire Managed Device Setup

We have two separate security zones created on this device: the BIG-IP load balanced security zone, which is the zone for all the IPS-managed device interfaces, and the VLAN-35 security zone, which is the network for all the application server nodes (i.e., FTP, HTTPS, WEB). The Sourcefire NGIPS– managed device will inspect network flows coming from the BIG-IP appliance and then connect to the back-end server pools.

8 0
4 years ago
29 POINTS!!!
Alex Ar [27]

Answer:

Alignment

Explanation:

Because the words become aligned

7 0
3 years ago
I need a computer science help.....and I rlly want it right now...this the question
muminat
Define, en tus propias palabras, lo que son los sistemas de información.
6 0
3 years ago
Other questions:
  • In three to five sentences, describe how you can organize written information logically and sequentially
    8·1 answer
  • If you purchase a software suite for personal use, you can install the software how many times on how many different machines?
    6·1 answer
  • In Microsoft Word, when you highlight existing text you want to replace, you are in what
    11·1 answer
  • Which of the following is a popular open source intrusion detection system that runs on SmoothWall?? Synchronous Dynamic Random
    6·1 answer
  • An IP address in the form 197.169.100.1 is called a(n) ________. dotted quad encryption key random number sequential access numb
    7·1 answer
  • You are working with an online tech service to fix a problem with installation of a program on your machine. You grant them remo
    13·1 answer
  • Which member of the Jackson family was the spokesperson for the Psychic Friends Network.​
    7·1 answer
  • Which one of the statements best characterizes the current state of e-commerce?
    15·1 answer
  • Match the feature to its function.
    7·1 answer
  • Does any of yall play rob lox?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!