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
kondaur [170]
4 years ago
14

Largest of five (5 points). Write an algorithm that read 5 distinct integers and displays the largest value. Assume the input va

lues are distinct integers. % java LargestOfFive 17 23 5 1 6 23 % java LargestOfFive 8 3 -8 4 1 8
Computers and Technology
1 answer:
mrs_skeptik [129]4 years ago
6 0

Answer:

import java.io.*;

public class Larger {

  public static void main(String[] args) throws IOException{

       BufferedReader br=new BufferedReader(new InputStreamReader(System.in));// reading input from buffered reader

        int a,max=-99999,i;

        for(i=1;i<=5;i++)

        {

            a=Integer.parseInt(br.readLine());//converting string input string to int

            if(a >max)

               max=a;

         

        }

       System.out.println("Maximum value : "+max);

  }

Explanation:

You might be interested in
What movie would be greatly improved if it was made into a musical?
Lina20 [59]
Sixteen candles would be even better if it was a musical
3 0
3 years ago
This line of code is in your program.
Alexus [3.1K]

Answer:

it opens the file for appending

3 0
3 years ago
Which of the following are examples of software? Check all of the boxes that apply.
dezoksy [38]

Hey!

------------------------------------------

<h3>Answers:</h3>

Operating System

Web Browser

Word Processor

Device Driver

------------------------------------------

<h3>Explanation:</h3>

Software is a set of data that tells the computer what to do. Each of the answer above tell the computer something specific to do.

The operating system are basic functions that make the computer run smoothly.

The web browser is telling the computer you want to look something up like in internet explorer, firefox, and chrome.

The word processor is a piece of software that tells the computer that you want to format a piece of text like in Microsoft word.

The device driver is a piece of software that controls a connected device like a phone or another computer.

------------------------------------------

Hope This Helped! Good Luck!

4 0
3 years ago
Read 2 more answers
Search engines rank Web pages based on which of the following?
Alexus [3.1K]

Answer:

The popularity and credibility of the Web page.

The page must have a lot of traffic on it, and for this to happen the page must also be a provider of most needed information.

5 0
3 years ago
Implementing content filtering and intrusion detection/intrusion prevention systems at the Internet ingress/egress as well as di
olya-2409 [2.1K]

the correct answer is:

d. clicking on unknown e-mail attachment and files.

5 0
3 years ago
Other questions:
  • Whatis meant by Translation Lookaside Buffer?
    5·1 answer
  • Write an overloaded constructor for the Table class that will take a single argument for the color of the table Write a set meth
    13·1 answer
  • The entrance facility is the place where the connection to a WAN is located. It is basically the point where the LAN begins and
    9·1 answer
  • Consider a Games Expo for Children. Six competitions are laid out for the expo. Tickets are sold according to the age and gender
    11·1 answer
  • Linda is searching for a new job. Which information would her potential employers likely review in her social profile?
    14·2 answers
  • Nancy finds it difficult to locate emails in her Inbox. What action should she take to locate a particular type of email instant
    10·1 answer
  • Construct :<br> 4 input NOR Gate Truth Table.
    14·1 answer
  • Maria wants to create an image for a Web page. Maria should use _____. help me
    8·2 answers
  • What are the two types of programming languages?
    11·1 answer
  • 2.17.5 coders answers
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!