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

  Design a nested program

How many levels of nesting are there in this design?

  Techniques for information hiding and encapsulation

What techniques did you utilize for information hiding and encapsulation? Are there any improvements you would make? If so, what would they be?

  Functions to compute stress and strain in steel rod

Write a main function and the following functions to compute the stress and strain in a steel rod of diameter D (inches) and length L (inches) subject to the compression loads P of 10,000 to 1,000,000 pounds.

  Object-oriented systems is the concept of object

At the heart of all object-oriented systems is the concept of an object. Simply stated, an object is a set of related characteristics and their associated actions.

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Design class for textbook-data field for grade level of book

Design a class named TextBook that is child class of Book. Include new data field for grade level of book. Create a displayTextBookInfo () method so that you can accommodate new grade-level field.

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Implement a simplified version of the set class

You will implement a simplified version of the set class. You must implement all functions defined in the provided file set.h. You may add other member functions and variables as necessary.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  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.

  Implement the guess the word

Implement  the ‘Guess the Word' game in an object-oriented manner

  Create class integerset

Create class IntegerSet for which each object can hold integers in the range 0 through 100. Represent the set internally as a vector of bool values. Element a[i] is true if integer i is in the set. Element a[j] is false if integer j is not in the set..

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