Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Im stuck on F and E. how would i search an array and display it in c++ (15 points, 15 minutes) Complete the following program

Im stuck on F and E. how would i search an array and display it in c++

image text in transcribed

(15 points, 15 minutes) Complete the following program from A though H. #include #include using namespace std; //prototypes here. You don't need to write them. int main() { srand(time(0); I/A. Declare a constant called SIZE and set to 10. I/B. Declare an integer array that has SIZE slots. //D. call fillArray to fill the array with random numbers between 1 and 100. cout>> key; //F. Call find function and display found or not found here. //H. Call average function and display the answer to 2 decimal places here. return 0; } 1/C. Implement fillArray function here. Fill the array with random numbers between 1 and 100. //E. Implement find function here. It should return true if key is found in the array or false if not found. This function shouldn't have cout. I/G. Implement average function here. It should return the average (a decimal value) of the numbers in the array. This function shouldn't have cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database Design With Microcomputer Applications

Authors: Glenn A. Jackson

1st Edition

0137718411, 978-0137718412

More Books

Students also viewed these Databases questions