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]
4 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]4 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
Assume that ip has been declared to be a pointer to int and that result has been declared to be an array of 100 elements . Assum
Bogdan [553]

Answer:

The expression of this question can be given as:

Expression:

*ip + 1

Explanation:

In this question, it is given that ip variable has been declared and initialized and the ip variable is in the first half of the array. It finds the expression whose value is after the element of the array that ip points. So the expression to this question is *ip + 1. Where * is used to define ip variable as a pointer and its value is increased by 1 that is given in the question.

7 0
4 years ago
What can you do to improve your own digital wellness?
julsineya [31]
Update your passwords frequently, delete unused accounts, and be diligent about who and what you give your most personal information to. Invest in tech that fits your lifestyle without offering further distractions.
4 0
3 years ago
Read 2 more answers
This method is employed in order to rapidly change the locations of the website in order to ensure that no one site us used long
tester [92]

Answer:

Fast-flux

Explanation:

The techniques that is used to shift the network without shutdown of website.

4 0
4 years ago
Dereck works for long hours on his computer. He frequently experiences physical strain by the end of the day because he does not
Anni [7]
I think the answers are B and D!
4 0
3 years ago
Read 2 more answers
What makes jambinai so unique (it’s for band)
Rus_ich [418]

Answer:

Jambinai combines Korean folk music instruments and rock music instrumentation, which creates a different music style.

7 0
3 years ago
Other questions:
  • Which type of loop only runs while a condition is true?
    11·2 answers
  • A user of the wireless network is unable to gain access to the network. The symptoms are:1.) Unable to connect to both internal
    6·1 answer
  • A restaurant has a case type that allows customer to book the dining room for events. Customers provide basic information includ
    7·1 answer
  • ASAP FAST PLSKara is currently creating a storyboard for her web site. Which step of the web design process is she in? Coding Pl
    9·2 answers
  • Universal Containers has two customer service contact centres and each focuses on a specific product line. Each contact centre h
    7·1 answer
  • What is the function of a breadcrumb trail in a website?
    13·1 answer
  • Which best describes how a supporting database will be structured?
    10·1 answer
  • Assume there is a 30-byte heap. The free list for this heap has two elements on it. One entry describes the first 10-byte free s
    15·1 answer
  • What is the minimum number of bits you would need to represent a number on a 0 to 10 scale
    15·1 answer
  • What is the total number of time zones that can be configured to show by default in a calendar in Outlook 2016?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!