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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
Kto rozmawia z clamentain przez krótkofalówke w the walking dead w 4 epizodzie
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
When using a public computer or network, you should always
Answers: 2
question
Computers and Technology, 22.06.2019 20:00
What statement best describes operating systems? it’s possible for modern computers to function without operating systems. most operating systems are free or very inexpensive. operating systems are managed by the computer’s microprocessor (cpu). operating systems manage the computer’s random access memory (ram).
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
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: 2
You know the right answer?
Write a c++ console application that outputs the largest and smallest element of an array. your prog...
Questions
Questions on the website: 13722363