Write c program to find smallest-largest values

Assignment Help C/C++ Programming
Reference no: EM1361241

a. write a program c that will find the smallest, largest and average values in a collection of N numbers.Get the value of N before scanning each value in the collection of N numbers.

b. Modify your program to compute and display both the range of values in the data collection and the standard deviation of the the data collection. To compute the standard deviation , accumulate the sum of squares of the data value ( sum_of_squares) in the main loop. Find standard deviation after sum_of_squares calculation.

standerd deviation = sqrt( sum_squares / N - average^2 )

Reference no: EM1361241

Questions Cloud

Benefits of protein and fats in the diet : What are some of the benefits that unsaturated fats in addition, proteins provide when included in a balanced diet?
What will the speed of the boat be : Four point charges have the same magnitude of 2.18 x10-12 C and are fixed to the corners of a square that is 3.95 cm on a side. Three of the charges are positive and one is negative. find the magnitude of the net electric field that exists at the ..
Changes in service and price in the airline industry : How would you characterize the U.S. airline industry in the early 1990's and how is it that Southwest Airlines has been able to consistently grow and prosper in the U.S. passenger airline industry
Problem on loan repayment : Suppose your father has a mortgage loan on family home that was made several years ago when interest rates were lower. The loan has current balance of $40,000 & will be paid off in twenty years by paying $330 per month.
Write c program to find smallest-largest values : Write a program c that will find the smallest, largest and average values in a collection of N numbers.Get the value of N before scanning each value in the collection of N numbers.
Court case of lawsuit : A discussion of the legal and ethical issues related to performance management in this court case or lawsuit
Produce a net electric field of magnitude e : Consider an infant who weighs 100 newtons. During each year she grows so that each dimension of her body increases by 5%. How much would she weigh then.
Nature versus nurture debate in relationship to obesity : There are two common theories to explain obesity. Give an overview of the nature vs. nurture debate in relationship to obesity as presented in your textbook and other reliable sources.
Illustrate what two policies could you use to reduce : As a policy maker concerned with correcting the effects of gases and particulates emitted by and local power plant, illustrate what two policies could you use to reduce the total amount of emissions.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Time conversion

Write a C++ program that takes an Eastern standard time in hours, minutes, and seconds,and prints it out in Central time, Mountain time, or Pacific time.

  Write two short c programs and solve exam-style problem

Write two short C programs and solve four exam-style problems.

  Write a c program that reads a data file of floating numbers

Write a program that reads a data file of floating numbers into an array and prints the array elements along with the number of items in the array

  Prepare a program that uses at least two functions

Prepare a program that uses at least two functions that can be called from your main.

  Write a c function to convert gallons-quarts-pints and cups

Write a C function named liquid() that is to accept an integer number and the addresses of the variables gallons, quarts, pints, and cups.

  Program which asks the user for due date of next assignment

Write a program which asks the user for due date of the next assignment (hours, minutes). Then print number of minutes between the current time and the due date in format.

  To reverse the order of elements on a stack

Write a program in C++ to  reverse the order of elements on a stack S using two additional stacks using one additional stack

  Model-view-controller

Explain Model-View-Controller paradigm

  Develop a two dimensional interactive game

The player starts as a disk, but can "morph" (that is expand and contract) in selected directions

  Program to translates letter grade into number grade

In C++ (should be able to compile in Visual Studio 2010): Write a program to translates letter grade into number grade. Letter grades are A,B,C,D and F, possibly followed by a + or -.

  Program to print out invalid number to character

The integer must contain 3 distinct non-zero number, or the program will print out invalid number.it should print out invalid query.

  Programmingto compute the volume of water in the cubic feet

Write down an algorithm (Programming in C) in order to compute the volume of water in the cubic feet, flowing through a pipe of diameter d in feet, having a velocity of v feet per second.

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