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, 23.06.2019 01:00
Petrică, tânăr licean în clasa a ix-a, a primit în dar de la părinţii săi un cont bancar pentru micile sale cheltuieli curente. el este pasionat de internet banking şi îşi verifică cu grijă toate tranzacţiile efectuate. pentru creşterea securităţii tranzacţiilor online, banca îi furnizează lui petrică un număr pe care el va trebui să îl modifice, obţinând un număr tan – număr de autentificare a tranzacţiei (transaction authentication number). regula de obţinere a numărului tan este următoarea: se formează cel mai mic număr par din toate cifrele numărului furnizat de bancă. cerinţă cunoscând numărul n furnizat de bancă, să se determine numărul tan obţinut de petrică. date de intrare fişierul tan.in conţine pe prima linie numărul natural n cu semnificaţia din enunţ. date de ieşire fişierul de ieşire tan.out va conţine o singură linie pe care va fi scris numărul tan cerut. restricţii • 0 < n < 18*1018 • n are cel puţin o cifră pară • numărul tan obţinut nu poate conţine zerouri nesemnificative
Answers: 2
question
Computers and Technology, 23.06.2019 11:30
Auser is given read permission to a file stored on an ntfs-formatted volume. the file is then copied to a folder on the same ntfs-formatted volume where the user has been given full control permission for that folder. when the user logs on to the computer holding the file and accesses its new location via a drive letter, what is the user's effective permission to the file? a. read b. full control c. no access d. modify e. none of the above
Answers: 1
question
Computers and Technology, 24.06.2019 10:10
Scanning the road can be thought of as a
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
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, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Biology, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01
question
World Languages, 11.09.2020 06:01
question
World Languages, 11.09.2020 06:01
question
Mathematics, 11.09.2020 06:01