Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Question

FOR JAVA!

Note down a program that takes as input 5 numbers and outputs mean average and standard deviation of the numbers. If the numbers are x1, x2 ,x3, x4, and x5, then the mean is :

X= ( x1 + x2 + x3 + x4 + x5 ) / 5

and the standard deviation is:

sqrt( ((x1-x)^2 + (x2-x)^2 + (x3-x)^2 + (x4-x)^2 + (x5-x)^2)) / 5)

Your program must contain at least the following methods: A system that calculates and returns the mean and a method that calculates the standard deviation.

Also format the output to 2 decimal places.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9718902

Have any Question?


Related Questions in Computer Engineering

What are some skills individuals who work in the field of

What are some skills individuals who work in the field of cyber security need to prevent hacks in to a company's computers?

One-year treasury bills currently earn 225 percent you

One-year Treasury bills currently earn 2.25 percent. You expected that one year from now, 1-year Treasury bill rates will increase to 2.75 percent and that two years from now, 1-year Treasury bill rates will increase to ...

A soda vendor at aloha stadium noticed that during rainbow

A soda vendor at Aloha Stadium noticed that during Rainbow Warrior football games that more soda is being served the warmer the temperature during game time. Based on 40 home games covering the past 5 years, the vendor e ...

Which of the subsequent statements is correct with regard

Which of the subsequent statements is correct with regard to distributed systems ? a. Distributed system represents a world read of the network and considers it as a virtual uniprocessor system by dominant and managing r ...

Short answer essaygiven a requirement to integrate wdas

Short answer essay Given a requirement to integrate WDAs into an Enterprise Intranet, what are 2 applications that would be candidates for that, and illustrate strategies/methodologies to accomplish that.

Round robin rr jobs are processed using a fixed time-slice

Round Robin (RR): Jobs are processed using a fixed time-slice. The jobs are initially kept in a queue based on the order of arrival. The job at the front of the queue is removed and served similar to the FIFO algorithm. ...

Describe the definition of ransomware and what is wannacry

Describe the definition of ransomware. And what is wannacry threat?

It is said the best icons are more like traffic signs than

It is said "the best icons are more like traffic signs than graphic illustrations" providing a quick indication of the task they represent. Take a look at the Ribbon and tell us how well the graphic on each of the Ribbon ...

Can someone please help me with this examthis is consists

can someone please help me with this exam This is consists of four questions. The questions are designed to test your understanding of certain concepts that were studied over the course of the semester. Please answer all ...

Restaurant management database project the restaurant

Restaurant Management Database Project : The restaurant maintains the catalog for the list of food and beverage items that it provides. Apart from providing food facility at their own premises, the restaurant takes order ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As