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, 21.06.2019 21:30
Ajeweler designing a pin has decided to use five stones chosen from diamonds, rubies, and emeralds. in how many ways can the stones be selected?
Answers: 3
question
Computers and Technology, 24.06.2019 10:50
In 2009 to 2010, how many social network users were reported as being victims of online abuse? a. 1 in 10 b. 100% c.1 in 100 d. 50%
Answers: 2
question
Computers and Technology, 24.06.2019 13:20
3. ranga ramasesh is the operations manager for a firm that is trying to decide which one of four countries it should research for possible outsourcing providers. the first step is to select a country based on cultural risk factors, which are critical to eventual business success with the provider. ranga has reviewed outsourcing provider directories and found that the four countries in the table that follows have an ample number of providers from which they can choose. to aid in the country selection step, he has enlisted the aid of a cultural expert, john wang, who has provided ratings of the various criteria in the table. the resulting ratings are on a 1 to 10 scale, where 1 is a low risk and 10 is a high risk. john has also determined six criteria weightins: trust, with a weight of 0.3; quality, with 0.2; religious, with 0.1; individualism, with 0.2; time, with 0.1; and uncertainity, with 0.1. using the factor-rating method, which country should ranga select? why? (2 points)
Answers: 3
question
Computers and Technology, 24.06.2019 13:50
What does code do? a creates a text box that says "solid black" b creates a black border of any width c creates a black border 1 pixel wide
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
Mathematics, 29.11.2021 14:00
question
Mathematics, 29.11.2021 14:00
question
Mathematics, 29.11.2021 14:00
question
World Languages, 29.11.2021 14:00
question
French, 29.11.2021 14:00
Questions on the website: 13722363