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

  Asignment1questionwrite a recursive function void reverse

assignment1questionwrite a recursive function void reverse that reverse a sentence.for examplesentence greeting new

  How many times will the inner loops s be executed

How many times will the inner loop's S be executed? Show HOW you got that answer.

  Write a program code to compute and build a table of reynold

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

  Ask the user for a number between 1 and 11 stop asking when

Ask the user for a number between 1 and 11; stop asking when the user enters 0 OR when the total goes over 21. Display the total on the screen.

  Write a function to calculate tax

write a function to calculate tax, the sample output is : Filing Status (1) Single (2) Married (3) Head of Household (0)

  Write a program that first prompts the user

Write a program that first prompts the user (repeatedly , if necessary) to supply a single digit(0,1,2..9) The program should repeatedly prompt the user for integer values until a sentinel value of 0 is entered to terminate the program.

  Define a structure to store roll no

Define a structure to store roll no, name and marks of a student. Using the structure of above write a ‘C’ program to create a file “student.dat”. There must be one record for every student in the file. Accept the data from the user.

  Explain initialize variables counting the lines and letters

If the output file cannot open, exit the program. Initialize variables counting the lines and letters. Write a program that reads a given text file, outputs the text file as is, and also prints the number of lines and the number of times each lette..

  Create dynamic data structure to store functions information

In this assignment, your input is a simplified version of programs written in a C++-like language consisting of a set of functions, and you are required to create a dynamic data structure to store the functions information so that you may answer s..

  What is the value of the expression

following are the simple question.What is the value of the expression  1000 /10 /10 + 100 %1.What is the output printf("%c",65)What is the output {int i=10;printf("%d",10/i++);}.

  The size ofthe character array holding your filename

How to express for code "THE SIZE OF THE CHARACTER ARRAY HOLDING YOUR FILENAME >=1024 (or use strings), we need to use long file names when grading your code."

  Program to prove that the definition of o-notation holds.

To prove this we need to prove that the definition of o-notation holds.

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