Java application that allows a user to enter numbers

Assignment Help JAVA Programming
Reference no: EM131914758

Java application that allows a user to enter numbers into an array and then process them.

Enter the number of elements and the value of each element;

Your application will process the data entered and will display the results:

Display the elements of the array, max 10 per line

Find and display the min value and the index of this min;

Display the even elements;

Sorts and displays the numbers from highest to lowest using Arrays.sort() method from java.util.Arrays class and some extracode.

It is recommended to design and implement the methods:

getMin - find the minimum element of the array;

getIndexOfMin - find the index of the maximum element (first if the are many);

displayEven - find the and display the even elements;

displayArray - display the elements of the array;

Example:

How many values you want to input:15

Enter number 0 :21

Enter number 1 :22

Enter number 2 :23

Enter number 3 :24

Enter number 4 :25

Enter number 5 :26

Enter number 6 :27

Enter number 7 :1

Enter number 8 :2

Enter number 9 :3

Enter number 10 :4

Enter number 11 :5

Enter number 12 :6

Enter number 13 :7

Enter number 14 :8

Thanks! Here is your array:

21, 22, 23, 24, 25, 26, 27, 1, 2, 3,

4, 5, 6, 7, 8

Min value entered was 1 and has the index: 7

Even values entered:

22,24,26,2,4,6,8

Descending Sorted Array is:

27, 26, 25, 24, 23, 22, 21, 8, 7, 6

5, 4, 3, 2, 1

Reference no: EM131914758

Questions Cloud

Compute cost of product transfer to finished goods inventory : Minstrel Manufacturing uses a job order costing system. Compute the cost of product transferred to Finished Goods Inventory:
What is the role of the individual in helping to solve : In your opinion, what is the role of the individual in helping to solve some of the problems mentioned in the paragraph above?
Do the courts have too much power in our lives : As noted, the Constitution does not expressly authorize judicial review. Should we, therefore, assume that the framers of the Constitution did not intend.
Calculate gross profit income before taxes and net income : During the year, cost of goods sold was $50,000; income from operations was $48,000. Calculate net sales, gross profit, income before taxes, and net income.
Java application that allows a user to enter numbers : Java application that allows a user to enter numbers into an array and then process them - Find and display the min value and the index of this min
Problem-the founding fathers-should we move on : Author Mark Kurlansky argues that the Founding Fathers' great accomplishment is losing its luster: I am sick and tired of the founding fathers.
Calculate the markup and the selling price for the printers : The total cost per unit was $150. Mirabelle earned a 30% return on its investment of $30,000,000. Calculate the markup and the selling price for the printers.
Differences in paths between dos and posix : What are some differences in paths between DOS and POSIX? How do you tell a path apart in each standard? What are some applications where it might be important
Calculate minis total income tax expense : Assuming that the U. S. tax rate is 35%, calculate Mini's total income tax expense, current income tax expense, and deferred income tax expense.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd