Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that uses an array to find the Average of a set float values entered by the user. You will have the main

Write a program that uses an array to find the Average of a set float values entered by the user.

You will have the main function control the operation of the program, but all values will be stored in the class.

You will need to use get and set methods in your class.

Create an array as a member of the class.

Create a method that will generate 1000 random floats (between 1-100) No decimal valuables

Create 1 method to sum all numbers in array

Create 1 method to output the average of all numbers input by the user.

Create 1 method to output all the numbers input by the user.

Hard Code a Binary Search Method and allow the user to input a value to search for. Output if the value exist in the array. If the value exist in array output the location in the array.

Please read the question thoroughly and post the correct solution, be clear for your comments. It should be in C++. Please be different from the forum. Thanks,

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

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

Students also viewed these Databases questions

Question

Design a job advertisement.

Answered: 1 week ago