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

  Define in detail minimum five practices

Your Web design firm has just hired a talented graphic artist with years of expertise in print media and no experience with producing image production. You have to train this person in the best practices for Web graphics. Explain in detail minimum..

  Express the movement of the spot on the disk

In the rotating disk and strobe demo, we observed that different flashing rates of the strobe light would make the spot on the disk stand still.

  Write separate sql statements to insert data into the table

Write 2 separate SQL statements to insert data into the table that you just created.

  Relationship between the people and appointment entities

In terms of the data modeling concepts you read about in this chapter, what type is the relationship between the People and Appointment entities?

  Create a class that will take into it the amount of money

You have been asked to work on a much larger project for a mobile app that helps people manage their budget.

  Write a short shell script called c-interp

CS 146 Assignment. Write a short shell script called "C-interp" which is intended to have soft links point at it, and pretends to be a C language interpreter

  Define the lsp and ssp instructions

Assume that ASC has a stack pointer register (SP) that is initiated to 0 when power is turned on. Assume also two instructions LSP and SSP.

  List as many ways as possible to interconnect three computer

List as many ways as possible to interconnect the three computers so that they could operate on one local area network.

  What is oracle administration documentations

What is oracle administration documentations

  Define a function named bico

Define a function, named bico, that returns, from the ith expansion of the quantity (x + y), the jth coefficient.

  How to prepare an implementation plan

Boardman Management Group manages the Baderman Island resort. They are considering whether to upgrade the word processing software recent in use at the resort or to buy a new word processing software application. Boardman plans to hire Smith Syste..

  How many english-speaking operators does the hospital need

How many English-speaking operators does the hospital need to staff the call center during each 2-hour shift of the day to answer all of the calls.

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