Computers and Technology
Computers and Technology, 18.10.2020 14:01, 083055

**Code In java** The user should input the number of numbers they are going to enter. Your job is to find the maximum and the minimum of these numbers. The output
of the program if the user does not enter a negative number and all iterations
successfully terminate, will be the maximum number, the minimum number and
their difference(max-min).
If the user inputs a negative number while entering the numbers, you will
exit the loop and will not report the min, max and the difference but will write:”
Program aborted due to the entrance of a negative number”
Exp: The user enters 3 as the number of elements then enters 1,2,4. The
output will be: min= 1, max= 4 and the diff is 3.
Exp2: The user enters 3 as the number of elements then enters 4,-5. The
output will be: ”Program aborted due to the entrance of a negative number

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:00, zahraa244
Describe in pseudocode an algorithm that given an integer n and a linked list of elements increases the linked list by a factor of n by replacing each element in the original list with n copies of that element. for example, if l: [18, 7, 4, 24, 11] and n = 3 the resulting list should be l: [18, 18, 18, 7, 7, 7, 4, 4, 4, 24, 24, 24, 11, 11, 11]. if the value of n is less than or equal to 0, the list should be empty after the call. what’s the running time of your algorithm?
Answers: 3
image
Computers and Technology, 22.06.2019 08:00, razielcornils04
What is the algorithm for building a binary tree program
Answers: 2
image
Computers and Technology, 23.06.2019 12:00, clevelandjaniya1
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
image
Computers and Technology, 23.06.2019 18:30, janny48
How often does colleges update the cost of attendance on their website? . a)every two years b) every four years c) every year d) every semester
Answers: 1
Do you know the correct answer?
**Code In java** The user should input the number of numbers they are going to enter. Your job is t...

Questions in other subjects: