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
PLEASEEE HELPPP
yan [13]

Answer:

to prevent anyone from discovering it

hope this helps you

<h2>❤itz Indian heart ❤</h2>
3 0
3 years ago
Who needs to be involved when assembling business solutions that include hardware and software?
sveta [45]
Software engineer i would say
5 0
3 years ago
Read 2 more answers
What is the binary number for the decimal 1024? ​
GaryK [48]

Answer:

10000000000

Explanation:

While a typical byte only goes up to 8 digits, you can expand past that by having each integer past the initial 8 just double the amount from before

8 0
3 years ago
Read 2 more answers
Horizontal lines should be avoided in photographs because they make the photograph appear small.
Dovator [93]
False. horizontal can be used for landscape pictures to create a depth effect
4 0
4 years ago
Which directive is used when defining 64-bit IEEE long reals?
Taya2010 [7]

Answer:

The answer is "Option b".

Explanation:

In the project of IEEE-754 to define 64 -bit we require a REAL8 double precision that is equal to 8 bytes and 64 bit, and it is also used for floating-point arithmetic, and other options were not correct that can be described as follows:

  • In option a, REAL4 is used to define 32-bit, that's why it is not correct.
  • In option c, This type of declaration is not valid in IEEE, that's why it is wrong.
  • In option d, The REAL is a keyword that is used to define a value but in this, there is no value to define, that's why it is wrong.

7 0
3 years ago
Other questions:
  • Binary search requires that data to search be in order. true or false
    5·1 answer
  • Rather than manually setting a print area each time you want to print a range, you can ____ the range.
    13·1 answer
  • Where do you access the status report of an assigned task that is open?
    12·2 answers
  • Two good guidelines for good readability on a website are ______ (choose two)
    14·1 answer
  • The primary purpose of an operating system is: To provide a software interface between the hardware and the application programs
    11·1 answer
  • What was used to enhance silent films of the early 1900s
    15·1 answer
  • Which of these is NOT a benefit of being connected 24/7?
    11·1 answer
  • In which type of class methods is it typically necessary to filter bad arguments (either directly or indirectly with the help of
    13·1 answer
  • The following method is intended to return true if and only if the parameter val is a multiple of 4 but is not a multiple of 100
    7·1 answer
  • Explain basic anatomy of computers.
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!