subject

Write a java program that takes an integer number-, and then numbers from the user to store them in an integer array. The goal of the question is to find the second largest number in the number array. Input Format

is a positive integer number
is an integer number where
Constraints

Output Format

The program will print the second largest number

Sample Input 0

9
3 2 -1 5 44 12 34 23 0
Sample Output 0

34
Explanation 0

The number 9 in first line indicates the size of given integer numbers in the second line.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:40
In this lab, you complete a python program that calculates an employee's annual bonus. input is an employee's first name, last name, salary, and numeric performance rating. if the rating is 1, 2, or 3, the bonus rate used is .25, .15, or .1 respectively. if the rating is 4 or higher, the rate is 0. the employee bonus is calculated by multiplying the bonus rate by the annual salary.
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Design a class tictactoe that: holds the following information about the game: two-dimensional array (3 by 3), and winner. add additional variables as needed. includes the functions to perform the various operations on objects. for example, function to print the board, getting the move, checking if move is valid, determining if there is a winner after each move. add additional operations as needed. includes constructor(s). write the functions of the class, and write a program that uses the class. the program should declare an object of type tictactoe. the program will create the board and store it in the array. the program will allow two players to play the tic-tac-toe game. after every valid move update the array, check if there is a winner. if there is no winner and no tie, then print the board again to continue.
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
question
Computers and Technology, 24.06.2019 22:00
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
You know the right answer?
Write a java program that takes an integer number-, and then numbers from the user to store them in...
Questions
question
Mathematics, 15.11.2021 02:20
question
Mathematics, 15.11.2021 02:20
question
Mathematics, 15.11.2021 02:20
question
Business, 15.11.2021 02:20
question
Mathematics, 15.11.2021 02:20
question
English, 15.11.2021 02:20
question
Mathematics, 15.11.2021 02:20
question
English, 15.11.2021 02:30
Questions on the website: 13722361