Calculate the difference between the number and the average

Assignment Help Programming Languages
Reference no: EM13335336

1. Write a program that will input an array of 10 REAL4 numbers into an array, and that will calculate the average value of the array and the standard deviation. The standard deviation is given by the relationship that σ is equal to the square root of ( the sum of the squares of the differences between each number and the average value, divided by the number of numbers). The basic algorithm is:

1. Input the array.
2. Calculate the average
3. For each element in the array

a. Calculate the difference between the number and the average.

b. Square the difference

c. Add it to a sum

4. Divide by the number of numbers

5. Take the square root

The problem should display the numbers, the average and the standard deviation.

2 Write a program that will input values for the following real4 variables and will calculate and display the value of the expression. Describe the contents of the FPU stack as the execution takes place.

(( a - b) + c) * ((d + e)/a) )

Reference no: EM13335336

Questions Cloud

Calculate donnas taxable income and income taxes : Calculate Donnas taxable income and income taxes payable (Federal and Ontario) under the Income Tax Act of Canada for the 2012 taxation year and prepared for Donna by November 29, 2013 by noon to Stephanie Miller
What is the absolute pressure at the bottom of the container : A container is filled to a depth of 18.0 cm with water. What is the absolute pressure at the bottom of the container
Compute the mass the magnesium anode : Calculate the values of Avogadro's number and the Faraday assuming the charge in an electron is 1.602 x 10^-19 coulombs/electron. Also calculate the mass the magnesium anode have lost during the process
Prepare a bank reconciliation statement using the form : The books of Steve's Services, Inc. disclosed a cash balance of $68,757 on June 30. The bank statement as of June 30 showed a balance of $54.780.
Calculate the difference between the number and the average : Write a program that will input an array of 10 REAL4 numbers into an array, and that will calculate the average value of the array and the standard deviation.
Define the values of avogadro''s number : Calculate the values of Avogadro's number and the Faraday assuming the charge in an electron is 1.602 x 10^-19 coulombs/electron. Also calculate the mass the magnesium anode have lost during the process. The answers will be a number.
What speed will put the car on the verge of sliding : Suppose the coefficient of static friction between the road and the tires on a car is 0.575 and the car has no negative lift. What speed will put the car on the verge of sliding
What will be the balance on the account after 6 deposits : You deposit today $1500 in an account that pays 1.7% per year. For the next few years you will keep making deposits 8.4% larger than the previous one.  What will be the balance on the account after 6 deposits?
Determine the difference in the amount of income : Determine the difference in the amount of income that the company would have reported if it had used the FIFO method instead of the LIFO method. Would income have been greater or less?

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

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

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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