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]
3 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]3 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
The it components of an erp system architecture include the hardware, software and the ________
natta225 [31]

The components of an ERP system architecture is made up of the hardware, software and the Data.

<h3>What is an ERP system?</h3>

Enterprise resource planning (ERP) is known to be a kind of  software that firms often use to handle or manage day-to-day business works such as accounting and others.

Note that The components of an ERP system architecture is made up of the hardware, software and the Data.

Learn more about  ERP system from

brainly.com/question/14635097

#SPJ12

6 0
2 years ago
The Danger zone around a robot is?
mojhsa [17]

maybe a EMP. tell me if im right

3 0
3 years ago
Read 2 more answers
Which of the following cools the air in a household refrigerator?
Ivanshal [37]

The following cools the air in a household refrigerator: Absorption of the heat from the air due to evaporation of the liquid refrigerant . Correct answer:B

The function of the refrigerator is to absorb heat into the refrigeration system. The evaporator is placed in the area to be cooled. The refrigerant vaporizes from the heat it absorbs heat in the evaporator.

4 0
3 years ago
Read 2 more answers
What is the best programming language?
Sophie [7]
There is no "best" programming language. Each programming language has it's one purpose. HTML is used for the skeleton of the web page. CSS is used to style the HTML. Javascript and javascript libraries like jQuery are used to make a web page more interactive. PHP is used to make a web page dynamic. MYSQL used to manage databases. Not all languages are for strictly for web page development. Ruby is an example. But Ruby on Rails is for web development. Some languages are used for making programs. Such as C, C++, C#. There are all sorts of programming languages. Some more popular than others. I have learned multiple programming languages and I have my favorites. If you go to learn multiple languages, I am pretty sure you're gonna have a favorite. 

It basically comes down to what programming language you want to learn.
8 0
3 years ago
Which program will have the output shown below?
MariettaO [177]

Answer:

for count in range(12,15)

Explanation:

This is a 'For' loop in python programming language and it take two or three arguments, the include: start, stop, step)

from the options given we only have two arguments (start, stop)

from my answer, the loop will begin from 12 and ends at (n-1) that's why it prints out 12, 13, and 14 only.

7 0
2 years ago
Other questions:
  • How can u refer to additional information while giving a presentation
    15·1 answer
  • String word = “Awesome”;
    9·2 answers
  • It is used to replace numeric number of a website​
    7·1 answer
  • This program has some errors in it that are needed to be checked import java.io.*;
    13·1 answer
  • According to your​ reading, Macy's uses​ ________ technology to track individual items for sale on store shelves.
    5·2 answers
  • Implement a Python function with the signature Transfer(S, T) that transfers all elements from the ArrayStack instance S onto th
    13·1 answer
  • My sister put my phone in the microwave and I'm pretty sure the battery blew up. I'm too scared to open the microwave. What do I
    11·1 answer
  • What is the purpose of a report?
    14·1 answer
  • TOT al<br>Name TWO examples of these settings and utilities. (2)​
    12·1 answer
  • What is a word processing program? Give examples of word processing programs.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!