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

  Why are you hesitant to commit

Carl picks 20 random names and finds that P1 sorts them faster than P2. "We're using P1!" exclaims Carl. Why are you hesitant to commit?

  Provides an introduction to relational databases

Solution gives an introduction to relational databases and Microsoft Access. It defines relational databases and describes some of the basics of creating relational databases.

  Define an iterated cryptographic hash function

Define an iterated cryptographic hash function. Define a cryptographic hash Function. Describe the idea of the Merkle-Damgard scheme.

  Explain difference between network node and network station

Explain the difference between a network node and a network station. Does a datagram network require any setup time before a packet is transmitted?

  Find the number rounded to the nearest hundredth

For each value read, the program should display the original value, the number rounded to the nearest integer, the number rounded to the nearest tenth, the number rounded to the nearest hundredth and the number rounded to nearest thousandth.

  Research which is better or more secure ssl or tls

Research which is better or more secure SSL or TLS - explain and justify your position. Include which one you use today and plan on using tomorrow.

  Create a web based multimedia presentation for a topic

COMP607 Visual Effects and Animation - Create a graphic composition using various graphics techniques and export to target delivery formats

  What is the purpose of the wsdl

What is the purpose of the WSDL? What are the three main elements that comprise the WSDL? What is the purpose of UDDI

  Prepare a context diagram for the new system

Write a brief memo that explains at least five attributes that you can use to define a process in the order system.

  Calculate and return the tip on a restaurant bill

Write a C# function called calcTip to calculate and return the tip on a restaurant bill.

  Make a heading that contains the name of the software

discuss a specific virus software, its advantages and disadvantages. make a heading that contains the name of the software you are reviewing. It should be about half-page or less.

  Write a code in avr c syntax to store your name

Write a code in AVR C Syntax to store your name, Roll Number and Degree in EEPROM.

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