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
How does having weak security on your browser represent the weakest link in a network
kozerog [31]

Answer:

1. Your location is always exposed "might not be a problem, until it is"

2. Computer Viruses as your browser allows them

3. Hackers, of course, Ransomware attacks

4. SpyWares, read terms and condition or atleast visit trusted sources

5. Phishing, intermediatte security can handle this risk, but fatal if not. as in online identity stolen, bank accounts accessed.

6...... ALWAYS STAY SECURED

YOU WERE NEVER THE TARGET, JUST THE VICTIM

5 0
3 years ago
Conformity is the acceptance of culturally approved goals and the means for achieving these goals.
docker41 [41]

Answer:

The following statement is "True".

Explanation:

Conformity acceptance word divided into two parts that are Conformity and acceptance. Conformity stands for change in behavioral change or conviction. Or considered the stress of the party. and the acceptance stands for thinking and trusting across community standards.  behaving and believing along social lines.

In other words we can say that achieving cultural goals via channels that are culturally approved and utilizing traditionally unorthodox methods to achieve cultural goals.

6 0
3 years ago
Read 2 more answers
Why should you limit what information is in your digital footprint?
oee [108]

Answer:

Your “digital footprint” includes all traces of your online activity, including your comments on news articles, posts on social media, and records of your online purchases. When you know the boundaries of your digital footprint and take steps to contain it, you can help protect your identity and your reputation.

Explanation:

3 0
4 years ago
After submitting a résumé by mail, how long should you wait before following up with an employer? a. 1 day b. 2-3 days c. 1 week
inn [45]
C is the correct answer. One week is an appropriate amount of time to wait when mailing a resum<span>é</span><span>, because it takes at least a couple of days for mail to arrive. However, you still want a decisive response, so two weeks is probably a little too long.</span>
7 0
3 years ago
Why do people yeet yeet and ree
DiKsa [7]

Answer:

Cause they are trying to be annoying

Explanation:

Something is wrong with them :)

8 0
3 years ago
Read 2 more answers
Other questions:
  • Fred opens a web browser and connects to the www.certskills.com website. Which of the following are typically true about what ha
    10·1 answer
  • What are the links between the operating systems, the software, and hardware components in the network, firewall, and IDS that m
    7·1 answer
  • for which is a chart legend used? a.all of the time b.whenever you are comparing data that is the same c.whenever you are compar
    9·2 answers
  • Where can information on metalworking occupations be found?
    14·2 answers
  • Hi hehehehehehehehehheeheh<br>​
    10·1 answer
  • What is bigger 4 liters or one gallon
    13·1 answer
  • What is the answer to in Microsoft Word you can access the blank from the command command from the mini toolbar what is the corr
    10·2 answers
  • Schuyler is making a list of the parts of a computer that are software. Which of the following will be on the list?
    13·2 answers
  • Whats th diffence between a fwireless speaker and a wird speakr
    12·1 answer
  • Name the two additional tabs that appear on selecting a chart​
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!