subject

Usin c++ programe : Write a program that performs the following:
a. Declare a two arrays called arrayA and arrayB that holds integer and the size of each array is given by the user.
b. The main method calls a method called fillArray(…) of type void to fill an array with a set of generated random integers between low and high (both inclusive). This method should be called twice to fill arrayA and then arrayB. (the values of High and low are read in the main method.
c. The main method calls another method called printArray (…) of type void to display the elements of the array 5 elements per lines. This method should be called twice to print arrayA and then arrayB.
d. The main method calls another method called count (…) of type integer to count and return the total number of integers greater than a value enter by the user.
e. Then the main methods calls another method called isSame( … ) of type boolean to check if the two arrays arrayA and arrayB have the same element or not.
f. The main method calls a method called findAverage(…) of type double that calculates and returns average of all the values I arrayA.
g. Then, main method calls a method called aboveAverage(…) of type integer that finds and returns how many numbers in arrayB are above the average of the elements of arrayA.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 19:00
The fourth generation of computers emerged between 1970s and 1980s. which technological advancement brought about this generation of computers? which computer architecture was used most in this generation?
Answers: 3
question
Computers and Technology, 23.06.2019 22:00
Jackson, who works in the finance department of a company, is holding a seminar for other employees on how to file taxes. only three employees sign up to attend the seminar. which device can he use to share his presentation with a group of three employees?
Answers: 1
question
Computers and Technology, 25.06.2019 08:30
Acollection of computers and other devices that are connected together to enable users to share hardware, software, and data, as well as to communicate electronically with each other is called
Answers: 1
question
Computers and Technology, 25.06.2019 09:30
Evaluate the following code segment. what is the value of count after execution? int count = 1; for(int outer = 0; outer < 4; outer++) for(int inner = 1; inner < 3; inner++) count++; 1 3 9 12 13
Answers: 1
You know the right answer?
Usin c++ programe : Write a program that performs the following:
a. Declare a two arrays call...
Questions
question
English, 07.09.2021 05:40
question
Geography, 07.09.2021 05:40
question
Mathematics, 07.09.2021 05:40
question
Biology, 07.09.2021 05:40
question
History, 07.09.2021 05:40
Questions on the website: 13722361