Program to find the sum & average of the given numbers

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

1) Write a program to find the sum & average of the given numbers using the while loop.

2) Write a program in C to find the sum and average of the given numbers stored in an array of n values.

Reference no: EM131202945

Questions Cloud

Apply critical thought by analyzing the primary source : Apply critical thought by analyzing the primary source you selected from the approved List of Literary Works. Avoid summary and personal reflection - Develop body paragraphs that contain clear topic sentences and examples that support the argument.
The journal entry to record this transaction would include : A company factored $38,000 of its accounts receivable and was charged a 1% factoring fee. The journal entry to record this transaction would include a:
Common stockholders will receive dividend : A corporation has 10,000 shares of 6% $50 par value cumulative preferred stock and fifty thousand shares of $4 par value common stock outstanding last year no dividends were paid this year the board of directors decided to pay a dividend of $80,000 t..
Calculate the value of c to achieve this condition : It is desired to run the motor in the previous problem with a power factor of unity. To achieve this, a capacitor C is connected in parallel across the motor, which results in a circuit like that shown in Fig. 2.13. Calculate the value of C to ach..
Program to find the sum & average of the given numbers : Write a program to find the sum & average of the given numbers using the while loop.- Write a program in C to find the sum and average of the given numbers stored in an array of n values.
Create appropriate x- and y-axis labels : Create appropriate X- and Y-axis labels, a chart title, and data labels so that your chart data are appropriately identified (years, dollars, account territory, etc.)
Find the resistance r and inductance l of the motor : A motor is connected to a 120 V rms, 60 Hz line. The motor is rated at 2 kVA and operates with a power factor of 0.8.
What stereotypes are associated with middle age : Describe Erik Erikson's Generativity versus Stagnation stage. According to Erikson, how does personality change in middle age? What personal and cultural forces motivate generativity? Why does it increase and contribute vitally to favorable adjust..
Their respective voltages is : The ratio of resistances of a 100 W, 220 V lamp to that of a 100 W, 110 V lamp will be at their respective voltages is?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program that will read in the number of two point baskets

Write a program that will read in the number of two point baskets and the number of three point baskets a player makes.

  Determines and displays what the amount of his gross pay

Write a program that determines and displays what the amount of his gross pay will be for each pay period if he is paid twice a month (24 pay checks per year) and if he paid bi-weekly.

  Create a program that reads in two integers

Create a program that reads in two integers and then has a pointer point to the first variable and then to the second variable.

  Creating an array of names

Just write the codes and label my variables. Example: (with Python not C++). Creating an array of names

  Write a program that reads in babynames

Write a program that reads in babynames.txt and produces two files - Separate the data for the boys and girls. You may enter any names

  Write a program that allows the user to enter a measurement

Write a program that allows the user to enter a measurement in either feet or inches. If they enter feet convert it to inches. If they enter inches convert it to feet. Output the answer in both feet and inches using appropriate identification on t..

  Implement a point class for three-dimensional points

Implement a Point class for three-dimensional points (x,y,z). Include a default constructor, a copy constructor, a negate() function to transform the point into its negative.

  Programming questions

Write a program (including timing measurements) for the following scenario. Generate 20 million random numbers, one at a time, and insert them into an array that doubles every time it runs out of space (starting size of 2), into an array that can..

  Label object displaying the saying

Under the Format selection, include options of Font and Color. Wire the Font and Color options to the Windows predefined Font and Color dialog boxes so that when their values are changed, the text in the Label object displaying the saying is chang..

  Write Relational Algebra queries

Attributes cid and fid in Reservation are foreign keys referencing homonymous attributes in Customer and Flight, respectively. Write Relational Algebra queries

  Convert code c to c++

I don't know where to start and how I should go about doing this and am looking for some advice - the code just has to compile in g++, it does not need to be completely rewritten in C++.

  Explain in detail programming constructs

In a party, among a group of gift-giving friends, each person sets aside some money for gift-giving and divides this money evenly among all those who came to the party (including self). However, like in any group of friends, some people are more g..

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