Write c program to add two integers and prints out average

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

Write a C program that prompts for a variable number of integers, adds them up, and prints out the average. The user will enter either an integer to be averaged or a sentinel of 999 indicating that no more numbers are to be entered. When the sentinel is entered, the program will exit the repetition loop. It will then compute and display the average of numbers entered.

Reference no: EM1360549

Questions Cloud

Valuable information in policy evaluation : Valuable Information in Policy Evaluation - How do policy analysts determine which type of information is valuable in policy evaluation?
Illustrate what is yolanda total fixed cost : Yolanda runs a bulldog farm and when she employed one person, she produced 1,000 bullfrogs a week. Construct Yolanda's total variable cost and total cost schedules. Illustrate what is Yolanda's total fixed cost.
What will be the vertical position of the boat : An 82 kg man drops from rest on the diving board 3 m above the surface of the water and comes to rest 0.55 s after reaching the water. What force does the water exert on him.
How does multitasking deal with the concept of noise : Explain some basic steps you could take to remove existing barriers in your current workplace and explain the different types of listeners and how a business leader might develop employees to become active listeners.
Write c program to add two integers and prints out average : Write a C program that prompts for a variable number of integers, adds them up, and prints out the average. The user will enter either an integer to be averaged.
Capital market instruments : Insert the following items in the appropriate section of the Statement of Cash Flows and indicate whether this increases or decreases cash flow:
Explain a project consists of multiple phases : Explain A project consists of multiple phases and Which of the following is a valid statement and applies to each phase of the project?
What are the magnitude and direction of the net force : A circuit contains six 240 ohm lamps with 60 W bulbs and a 10 ohm heater connected in parallel. the voltage across the circuit is 120 V. If the circuit has a fuse rated at 12 A, would it melt if everything is on.
Managing projects in different locations : What are the differences and similarities among managing an international project, an offshore project, and a domestic project?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a complete c++ program

The main program will read in a parameter value n (read this in main). Then it will call a function read2arrays (details below) to read lists of grades into two arrays, which the main program will call test1 and test2 (or some other names of your ..

  Program to declare array alpha of components of type int

Write C++ statements to do the following: Declare an array alpha of 15 components of the type int. Output the value of the tenth component of the array alpha.

  Recognition of the problem by the hsbc

What problem did the HSBC face in this case? What people, technology, and the organization factors were responsible for problem? Did HSBC management correctly recognize the problem?

  Computer programming using c language lab

Computer programming using c language lab

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Write c++ programs

Write a C++ program to accept distance in kilometers, coverts it to meters and then displays the result. Write a C++ program to find area and circumference of a circle.

  Determine the meaof the numbers in the array

Determine the mean(average) of the numbers in the array, and output the reslt. Use a subprogram to input the numbers, a function to find the mean.

  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.

  Program to produce ten random permutations of numbers

In C++(must be able to compile in Visual Studio ): Write a program to produce ten random permutations of numbers 1 to 10.

  Structured programming using procedural languages

A a program that is called "Playing with Numbers or Letters".

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write function that randomly produces maze

Write a function mazeGenerator that randomly produces a maze (in C++). The Function should take as arguments a two-dimensional 12-by-12 character array.

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