subject

Write a c++ console application that outputs the largest and smallest element of an array. your program should have three functions: a) initializearray: this function takes an integer array and its index and initializes each element using the rand() function; b) smallestindex: this functions takes as parameter an integer array and its size and returns the index of the first occurance of the smallest element in the array; c) largestindex: this functions takes as parameter an integer array and its size and returns the index of the first occurance of the largest element in the array; d) outputarray: this function takes as parameters an integer array, its size, the indeces to the largest and smallest element and the elements contained at those locations in the array. your program should not call all the functions in main.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 22:30, 341404143
Ted wants to go out to a neighborhood park and shoot pictures of dew drops on grass. he wants to get a low-level angle of the dew drops. which support equipment should ted use? a. mini tripod b. pistol grip c. monopod d. body mount
Answers: 2
image
Computers and Technology, 22.06.2019 08:30, marialuizavalen
Today is the anniversary of me being on yet, i don't need it anymore! here's a picture of my dog wearing a bowtie! my question is, how do i delete my account?
Answers: 1
image
Computers and Technology, 22.06.2019 14:20, capo9972
Cengagenowv2 is a comprehensive online learning tool. using cengagenowv2, you may access all of the following except: 2. each time you log in, cengagenowv2 automatically performs a system check and informs you if your computer does not meet the cengagenowv2 system requirements. 3. which tab/page allows you to easily track your assignment scores, number of submissions, time spent, as well as the ability view assign
Answers: 3
image
Computers and Technology, 22.06.2019 23:30, Arealbot
To check spelling errors in a document, the word application uses the to determine appropriate spelling. internet built-in dictionary user-defined words other text in the document
Answers: 1
You know the right answer?
Write a c++ console application that outputs the largest and smallest element of an array. your prog...

Questions in other subjects:

Konu
Biology, 02.11.2020 22:50