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
cricket20 [7]
3 years ago
6

The objective of the nested if statement below is: If amount1 is greater than 10 and amount2 is less than 100, display the great

er of the two. Complete the incomplete if statement. if (amount1 > 10) { if (amount2 < 100) { if ( ) System.out.println(amount1); else System.out.println(amount2);} } Write your answer as: if(....)
Computers and Technology
1 answer:
spayn [35]3 years ago
7 0

Answer:

The complete "if statement" is given below;

<u>1st Method:</u>

<u>using if else statement</u>

If (amount1>10 && amount2<100)

{

If(amount1>amount2)

system.out.println(amount1);

}

else

{

system.out.println(amount2);

}

}

<u>2nd Method:</u>

<u>using conditional statement</u>

if(amount1 > 10 && amount2 < 100)

{

   System.out.println(amount1 > amount2 ? amount1 : amount2);

\\conditional statement shows if amount1 is greater than amount2 it means the statement is true so it will show the true value i.e. amount1. But if amount1 is less than amount2 then the statement is false so it will show the false value i.e. amount2

}

<u></u>

You might be interested in
HELP PLEASE
GREYUIT [131]

Answer:

D, storyboard

Explanation:

5 0
3 years ago
A network administrator has statically configured the LMI type on the interface of a Cisco router that is running Cisco IOS Rele
Sergeu [11.5K]

Answer:

The answer is "The LMI model should be compatible with the supplier dynamically for the network manager".

Explanation:

The term LMI stands for the "Local Management Interface", it is a Cisco technology, in which the signaling protocol was used in between routers and transmission frame switches to share data in timekeepers, global addressing, multipathing as well as the present state of virtual socks for various purposes, in which it is mainly used for "dynamically setting, in which the network administrator provides compatibility with the service provider".

8 0
3 years ago
A security utility program that scans the system for small programs that interfere with how a computer functions are _____ utili
Aneli [31]

Answer:

A security utility program that scans the system for small programs that interfere with how a computer functions are _____ utilities.

Explanation:

7 0
3 years ago
Su now wants to modify the text box that contains her numbered list. She accesses the Format Shape pane. In what ways can Su mod
Fiesta28 [93]
I believe its E she can insert a picture in the text book
7 0
3 years ago
Read 2 more answers
Mason is part of a project team that is creating a television advertisement. List one risk the team faces and a strategy for min
Andru [333]

One risk might be that they might use copyright music and and the music creator might take legal action.

5 0
3 years ago
Other questions:
  • Your computer is configured to obtain an ipv4 address and dns server address automatically. what utility will help you to find t
    7·1 answer
  • ----------HELP WITH 3 QUESTIONS FOR 30 POINTS!!!---------
    6·1 answer
  • A study guide can be created
    6·2 answers
  • Which of the following is an object-oriented prototype-based language? Java Pike REBOL MATLAB
    9·1 answer
  • Modify the countUp( ) you wrote in the previous question to countUp( num), where num is a parameter. The function displays from
    9·1 answer
  • Attribute variables have the same meaning as participants variables. is this true or false?​
    14·1 answer
  • How does a project charter support the project manager in getting things for the project from other people?
    6·1 answer
  • What's the maximum number of ad extensions that can show for a particular query or device at any given time?
    13·1 answer
  • Visit on social networking site and look for the site's privacy policy.The link is typically found at the bottom of the page and
    9·1 answer
  • KELLY Connect
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!