Write a java program that creates a one-dimensional array

Assignment Help Computer Engineering
Reference no: EM132200855

Write a JAVA Program that creates a one-dimensional array and fills it with the following numbers in this order:

22, 40, 64, 92, 61, 42, 23, 98, 85, 13, 81, 32, 90, 54, 16

Pass the array to a method and find the following:

1. Sum of the numbers.

2. Average of the numbers to two decimal places.

3. Maximum value of the numbers.

4. Minimum value of the numbers.

5. Total Count of the numbers greater than or equal to 50.

You should first output the entire array and then output the answers to the above 5 questions. Make sure your output clearly identifies which answers are which.

Reference no: EM132200855

Questions Cloud

Write a java program with two checkboxes : Write a Java program with two checkboxes, one labeled BLUE and the other labeled ORANGE.
Reverse the order of words and displays on the console : Write a Java program that reads a file, reverses the order of words and displays on the console. The words can be on the same or separate lines.
Display a list of distinct numbers in the input : Display a list of distinct numbers in the input and the occurrence of each distinct value.
Demonstrate that the algorithm works using two threads : Use threads to implement Peterson's algorithm for mutual exclusion. Demonstrate that the algorithm works using two threads.
Write a java program that creates a one-dimensional array : Write a JAVA Program that creates a one-dimensional array and fills it with the following numbers in this given order.
What role do portals play in : Are they still as relevant as they were a few years ago? More relevant? Support your conclusion with additional research on the web.
A program to calculate rectangular and right triangles : Write a java program that calculates of rectangular and right triangles. The main function then only outputs the areas of the two calculated areas.
Demonstrate deadlock without synchronized keywoord : Write a Java program that demonstrates deadlock WITHOUT synchronized keywoord.
What are the lessons of enron that are relevant today : In what ways are the circumstances in this case no longer relevant to today's business environment? Are there political, legal, technical forces in place.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Overview of the cryptography domain

Overview of the Cryptography Domain, Describe the operation of a one-time pad (OTP) and give an example of a device that uses an OTP from research

  Simulate a random walk using a coin flip

Simulate a "random" walk using a coin flip. The initial position is the middle of the array and if the coin flip is heads (0) move 1 step to the right.

  What is the hamming distance of your dictionary

What is the Hamming Distance of your dictionary - Compute the probability that the message is received correctly by node

  Write a boolean method called sorted

Write a Boolean method called sorted that takes three int parameters and returns true if the numbers are sorted in ascending order.

  Explain differencec between white hat and grey hat hackers

SEC420- Explain the main differences between white hat and grey hat hackers. Provide a brief example of a grey hat hacker.

  Are their natural clusters in the data

STA 141A Fall 2016 Assignment Topic: R Programming. Are their natural clusters in the data? Are these clusters related to different natural strata determined by the values of the categorical variables like Ed, Race, Sex, Smoke

  Describe an efficient algorithm that maximizes alices chance

Describe an efficient algorithm that maximizes Alice's chance of winning the game.

  Design a person class similar to the coin class

Design a Person class similar to the Coin class defined in this chapter. Then design and implement a driver class called SelectPerson whose main method.

  The evolution of computer technology

Describe how concepts such as RISC, pipelining, cache memory, and virtual memory have evolved over the past 25 years to improve system performance.

  As a software engineer what are the means of tracking you

as a software engineer what are the means of tracking you would use to track and monitor the reuse history of a

  A sorting function to sort according to year

A sorting function to sort according to Year. Notice that the sort function has manage all five arrays while sorting. Display the results.

  What tools are used to perform the test

What tools are used to perform the test? Who are the stakeholders for the test? What are the ramifications if this test fails or is not performed?

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