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
guapka [62]
3 years ago
12

Write a Java application that inputs a series of 10 integers and determines and prints the largest and smallest integer. Use a c

ounter-controlled while iteration.
Computers and Technology
1 answer:
klio [65]3 years ago
5 0

Answer:

import java.util.Scanner;

public class LargestSmallest {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.print("Enter 10 integers: ");

       int num = in.nextInt();

       int i = 1;

       int min = num, max = num;

       while (i < 10) {

           num = in.nextInt();

           if (num > max) max = num;

           if (num < min) min = num;

           i++;

       }

       System.out.println("Largest number: " + max);

       System.out.println("Smallest number: " + min);

   }

}

Explanation:

A Java application that inputs a series of 10 integers and determines and prints the largest and smallest integer is written above.

You might be interested in
With a DUI charge on a driver’s record ______________.
Sindrei [870]
When you are charged with DUI or Driving under influence, there are many possible consequences for such crime.

One, your insurance company might require you to increase the price or upgrade your subscription to premium. Or, worst case is they will terminate your subscription immediately upon knowing.

4 0
3 years ago
Proxy data:
lapo4ka [179]

Answer: provide climate data representing times when instruments were not available to measure them.

Explanation:

Proxy data provides climate data representing times when instruments were not available to measure them.

6 0
4 years ago
People read all caps in e-mails as _____. yelling important points necessary for readability all of the above
mezya [45]
Yelling is the correct answer
6 0
3 years ago
Read 2 more answers
What concerns exist wherever personally identifiable information is collected stored in digital form or otherwise
Brums [2.3K]

Registration

Explanation:

This is because the personally identifiable information is collected and stored either for records.

5 0
3 years ago
What is the primary reason that organizations change their structure through downsizing, outsourcing, and offshoring as a means
sp2606 [1]

Answer:

Operating core is the primary reason that organizations change their structure through downsizing, outsourcing, and offshoring as a means of improving their operating efficiency

Explanation:

  • At the bottom of the organization is the operating core.
  • These are the people that do the basic work of producing the products or delivering the services.
  • In the simplest organizations, the operators are largely self-sufficient, coordinating through mutual adjustment.
  • In those organizations, there is almost nothing but operating core.
8 0
4 years ago
Other questions:
  • your grandmother tells you a dollar doesn’t go as far as it used to. She says the “purchasing power” of a dollar is much less th
    6·1 answer
  • Which is the highest level of the hierarchy of needs model?
    5·2 answers
  • The term _____ refers to computers that are among the fastest of any in the world at the time of their introduction.
    6·1 answer
  • In this lab, you declare and initialize variables in a Java program. The program file named NewAge.java, calculates your age in
    14·1 answer
  • A printer is connected locally on Computer1 and is shared on the network. Computer2 installs the shared printer and connects to
    10·1 answer
  • The Android operating system was invented by ______.
    13·1 answer
  • Which one is not considered part of the cinematography team?
    7·2 answers
  • What is the computer that is connected to a<br> server
    8·2 answers
  • OMG 2 TIMES ;DDDDDDDDDDDDDDDDD​
    14·1 answer
  • Objective a right turn true or false?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!