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 program which models the employee

Write program which models the employee. An employee has an employee number, a name, an address, and a hire date. A name consists of a first name and a last name.

  Compute and print annual salary of employee

Identify input, process and output to solves each problem. Compute and print the annual salary of employee. suppose the employee receive 6% increase in pay.

  Program-dynamically check store-s inventory-central office

You are the outside consultant to large chain of grocery stores. Store's management would like to dynamically check store's inventory from central office.

  Program to display weekly payroll report

Write down a program to display a weekly payroll report.

  Example on substitution model

Use the substitution model to illustrate what the result of calling (add1-iter '(1 2 3)) will be.  Why is the list reversed?

  Explaining law of diminishing returns

As computer word size gets larger and larger, there is a law of diminishing returns; speed of execution of application programs doesn't increase and may, in fact, decrease.

  Step by step procedure to solve to create record note book

Create Record note book; The Record note book should be in the follwoing order. Procedure: Write down step by step procedure to solve problem.

  Create application to enter number of units sold

Quantity discounts are given according: create an application that allows the user to enter the number of units sold for each software package.

  Software system to manage records of patients

A software system is to be developed to manage the records of patients who enter a clinic for treatment. The records include records of the all regular patient monitoring.

  Write function which computes and returns sum of n numbers

Write a function, sumsteps2, which computes and returns sum of 1 to n in steps of 2, where n is argument passed to function. For example if 11 is passed, it will return 1 + 3 + 5 + 7 + 9 = 11.

  Draw application which reads inventory records file

Draw an application which reads inventory records file and produces a report whihc show item-number, item-description, and price of every item on each day, one through 7.

  Designing navigation system for point-and-click system

Design a navigation system or menu allows Access to act like point-and-click system. Write down some of the kinds of navigation.

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