Question:
Create an array and calculate the numbers as described below.
1) Create an array varibale with size 52) Ask user to input elements/values for the array variable3) Ask user to input a integer number to multiply with array elements that created above. 4) Pass the array and integer number to a function below (This function should return an integer value)
int calculate(int[], int).
5) Multiply the array elements with that integer number and store the results into new array 6) Calculate the average value on the new array elements that created in Step-5 and find how many numbers are above average7) And return this number to main method and display the results.
Sample Output-1:Enter 5 numbers to create array elements : 84562Enter the number to multiply with Array elements : 7Multiplication Results : [56, 28, 35, 42, 14]Average value is 35.02 numbers are above average
Sample Output-2:Enter 5 numbers to create array elements : 89458Enter the number to multiply with Array elements : 5Multiplication Results : [40, 45, 20, 25, 40]Average value is 34.03 numbers are above average
Hint:
You need to use single dimensional array and methods to achieve this task.
Submission Requirement:
Please you need to submit your work in word format, and each question should provide the below requirements:
The code
The results in screenshots (including minumum 3 test results)
“Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!”
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more