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 program that uses the curve class hierarchy

Write a program that uses the curve class hierarchy. The program should define several different objects, output their area, circumference, etc. It should also use the printcurve function.

  Allows the user to enter the cost for an item

Write a program that allows the user to enter the cost for an item and the number of that item ordered.

  Op-codes-add microcode to overlapping address ranges

Bmov a,b,n. This Block Move instruction moves n bytes of data from location a in memory to location b. Deal correctly with case of overlapping address ranges.

  Explaining tags used for effective page layout

Page layout is one of the most time consuming tasks for a web designer. What are some of the tags used for effective page layout and how do they work?

  Create link invisible to begin-display after submit button

Create link invisible to begin but display it after Submit button has been clicked. Confirmation page should say "Thank you for your order".

  Describing program using suiatble printf command

Yyou have to describe all of this to user using suiatble printf() statements.

  Prompt input function

You have no guarantees about the accuracy of the input from the user. You have to check all input and give helpful error messages to assist the user.

  Write multiplication program make positive one-digit integer

Write down program which will aid the elementary school learn multiplication. Use Random object to make two positive one-digit integers.

  Convolving with user defined kernels

Convolving with User defined Kernels - Edit the original Kernel to make the output image shifted by 3 pixels to the left.

  Write program where dealer-s five-card hand is dealt

Write a program where the dealer's five-card hand is dealt "face down" so the player cannot see it. The program should then evaluate the dealer's hand.

  Pseudo code for recursive function to print prime numbers

Write in pseudo code the recursive function which receive 2 integers (a and b) and returns sum of all common prime dividers (1 is not prime).

  Does loop have dependences two-dimensional arrays

Consider the following code with two-dimensional arrays. Does this loop have dependences? Can these loops be written so they are parallel?

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