Computers and Technology

Write a program that accepts each element in the array from the user, and finds the following: a. The minimum number in the array

b. The maximum number in the array

c. Average of all values in the array

d. Sum of the numbers present from index [2] to index [7]

e. Identify how many times ‘5’ was found in the array.

f. Identify all the odd numbers in the array

g. Sum of all odd numbers in the array

h. Identify even numbers in the array

i. Sum of all even numbers in the array

j. Identify count of even numbers and odd numbers in the array.

k. Identify numbers which are divisible by 2 and 5.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:50, juan3937
The instruction ishl (shift left integer) exists in jvm but not in ijvm. it uses the top two values on the stack, replacing the two with a single value, the result. the sec- ond-from-top word of the stack is the operand to be shifted. its content is shifted left by a value between 0 and 31, inclusive, depending on the value of the 5 least signifi- cant bits of the top word on the stack (the other 27 bits of the top word are ignored). zeros are shifted in from the right for as many bits as the shift count. the opcode for ishl is 120 (0x78).a. what is the arithmetic operation equivalent to shifting left with a count of 2? b. extend the microcode to include this instruction as a part of ijv.
Answers: 1
image
Computers and Technology, 22.06.2019 20:00, jumpgirll
The blank button automatically displays next to the data when you select a range of numeric data which is an available option for creating a chart
Answers: 3
image
Computers and Technology, 23.06.2019 04:20, RandomLollipop
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
image
Computers and Technology, 23.06.2019 16:00, CalCDanG
What is the biggest difference between section breaks and regular page breaks? section breaks are more difficult to add than page breaks. section breaks make it easier for you to view the document as an outline. section breaks allow you to have areas of the document with different formatting. section breaks are smaller than regular page breaks.
Answers: 2
Do you know the correct answer?
Write a program that accepts each element in the array from the user, and finds the following: a. T...

Questions in other subjects: