+1(316)4441378

+44-141-628-6690

  • Essay
  • September 5th, 2013

Write a Java application that performs the following task

Part 1

Write a Java application that performs the following task:

1) Create an int array (you can declare the values yourself, or use the Random feature in java to create this array)

2) Sort the data.

3) Prompt user to input an integer from the keyboard

4) Search for the user input value in the array created in step 1 using a simple linear search.

5) Display a message whether the user input has been found in the array, at what position, and how many steps the program required to search for the data value.

6) Search for the user input value in the array created in step 1 using another (hopefully more efficient) search algorithm.

7) Display a message whether the user input has been found in the array, at what position, and how many steps the program required to search for the data value.

After you are done with this program, submit the source code along with the screen shot

Part 2

Write a program for a real estate agent. The program should perform the following tasks:

1) Create an array to hold average house price for the each of past 25 years for a single family residence of 1500 square feet. Initialize the array with the values in sorted order, assuming the average house price increases each year.

2) Prompt the user for a house value.

2) Use a binary search algorithm to determine the year that most closely matches the house value entered by the user and display the year and average house value for that year.

After you finish the program, submit the source code and a screen shot of the output via coursenet.

SLP assignment expectations

1) Use proper data structure to solve programming task.

2) Demonstrate your knowledge of searching using the binary search algorithm.

Part 3

Write a Java program using ArrayList to allow the professor to enter student’s names, and four test scores for each student. There should be an option to type “C” when student data entry is complete. Next, display each student’s name, average score and letter grade. The output should be sorted by student last name.

Hint: Create a class or data structure hold a student first name, last name, the student’s 4 test scores, and letter grade. Then create your ArrayList to hold objects of this type.

After you are done, submit the source code with some screen shot

Part 4

Write a Java program that inserts 25 random integers ranging from 0 to 100 into an ArrayList in ascending order. The program should then output the numbers and display the sum and average of the numbers.

After you are done, submit the source code and screen shot to CourseNet.

SLP assignment expectations

Demonstrate understanding of using the ArrayList.
Part 1
Write a Java application that performs the following task:
1) Create an int array (you can declare the values yourself, or use the Random feature in java to create this array)
2) Sort the data.
3) Prompt user to input an integer from the keyboard
4) Search for the user input value in the array created in step 1 using a simple linear search.
5) Display a message whether the user input has been found in the array, at what position, and how many steps the program required to search for the data value.
6) Search for the user input value in the array created in step 1 using another (hopefully more efficient) search algorithm.
7) Display a message whether the user input has been found in the array, at what position, and how many steps the program required to search for the data value.
After you are done with this program, submit the source code along with the screen shot
Part 2
Write a program for a real estate agent. The program should perform the following tasks:
1) Create an array to hold average house price for the each of past 25 years for a single family residence of 1500 square feet. Initialize the array with the values in sorted order, assuming the average house price increases each year.
2) Prompt the user for a house value.
2) Use a binary search algorithm to determine the year that most closely matches the house value entered by the user and display the year and average house value for that year.
After you finish the program, submit the source code and a screen shot of the output via coursenet.
SLP assignment expectations
1) Use proper data structure to solve programming task.
2) Demonstrate your knowledge of searching using the binary search algorithm.
Part 3
Write a Java program using ArrayList to allow the professor to enter student’s names, and four test scores for each student. There should be an option to type “C” when student data entry is complete. Next, display each student’s name, average score and letter grade. The output should be sorted by student last name.
Hint: Create a class or data structure hold a student first name, last name, the student’s 4 test scores, and letter grade. Then create your ArrayList to hold objects of this type.
After you are done, submit the source code with some screen shot
Part 4
Write a Java program that inserts 25 random integers ranging from 0 to 100 into an ArrayList in ascending order. The program should then output the numbers and display the sum and average of the numbers.
After you are done, submit the source code and screen shot to CourseNet.
SLP assignment expectations
Demonstrate understanding of using the ArrayList.

 

You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.

 

Latest completed orders:

# topic title discipline academic level pages delivered
6
Writer's choice
Business
University
2
1 hour 32 min
7
Wise Approach to
Philosophy
College
2
2 hours 19 min
8
1980's and 1990
History
College
3
2 hours 20 min
9
pick the best topic
Finance
School
2
2 hours 27 min
10
finance for leisure
Finance
University
12
2 hours 36 min
[order_calculator]