Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer the following in java 1 . Write a program that will ask the user to enter the size of an integer array. Then

Please answer the following in java
1. Write a program that will ask the user to enter the size of an integer array. Then the program will prompt the user to enter the values. The program will then use the array to find and print the sum and average.
Test your program on
Array size 6
Values: 2,7,4,33,21,53
2.Write a program that creates an array of 10 integers. The program will ask the user to enter the values and then uses the array to find the maximum value stored.
The program will display the
The array
The maximum value
The index of the maximum value.
Test your program on 23,10,94,75,15,36,81,27,36,59
3. Write a program that will ask the user to enter the following information
(Tyler, David, Susan, John, Dean, Alison)
Then the program will as the user to enter the name they would like to locate/find.
The program will print the array and then location (if found);otherwise will print the message Not found.
Use linear search algorithm.
Test your program on
- Jack
- Susan

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books

Students also viewed these Databases questions

Question

4. What decision would you make and why?

Answered: 1 week ago

Question

3. Review the evidence. Do you believe the testimony presented?

Answered: 1 week ago