Write a loop to total and average the contents of the array

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

Given the following code, write a loop to total and average the contents of the array:

#include <iostream>
using namespace std;

void main(void)
{
int grades[] = {100, 90, 88, 75, 99};
int total
int average

}

 

Reference no: EM13339447

Questions Cloud

Why is the density of states at the fermi energy : For electrons in a metal, why is the density of states at the Fermi energy approximately equal to the density of free electrons divided by the Fermi energy
How far should the objective lens be from the specimen : A microscope with an 6.5-mm-focal-length objective has a tube length of 14.0cm. how far should the objective lens be from the specimen
Write a class called fraction : Write a class called Fraction (this is not related to problem 2 from the text).
Determine the frequency of the beat organs produce : Two organ pipes, open at one end but closed at the other, are each 1.27m long. One is now lengthened by 2.00cm. Find the frequency of the beat they produce when playing together in their fundamental.
Write a loop to total and average the contents of the array : Given the following code, write a loop to total and average the contents of the array.
Distinction between adjusting and non-adjusting events : Explain the distinction between adjusting and non-adjusting events and discuss the requirements under the standard for the disclosure of events after the reporting period
What is the magnitude and direction of the magnetic field : An electric current I=5.0 amp flows down the y-axis and to the right on the x-axis. What is the magnitude and direction of the magnetic field at a point in the x-y plane with coordinates (a,a) where a=20 cm
How thick is the glass : A double-slit experiment is set up using a helium- neon laser (lamda=633nm). How thick is the glass
How large a vertical force must each person exert on beam : Two people, one at each end of a uniform beam that weighs 400N hold the beam at an angle of 25 degrees to the horizontal

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program to evaluate infix expressions

Write a program to evaluate infix expressions and summarize differences between array notation and pointer notation

  One time for the entire number set

You must run your program one time for the entire number set. Test for EOF (or use the function feof()) to know when to stop processing. You are to determine if each integer read is prime or not, and output the result to stdout

  Summarizing your predicted and actual output

Write a statement summarizing your predicted and actual output, and identify and explain any differences. For your conclusions, write at least one nontrivial paragraph that explains, in detail, either a significant problem you had and how you solv..

  Create a program that prompts a user for her name

A. Given a = 5, b = 1, x = 10, and y = 5, create a program that outputs the result of the formula f = (a b)(x y) using a single printf() function. B. Create a program that uses the same formula above to output the result; this time.

  Use a define statement to create a constant

Follow these specifications: Use a define statement to create a constant that will hold your student number. You should have separate string variables for your first and last name; name these first_name and last_name.

  Structs in an array of employee data.

Below is the instructions of my C++ Lab. The program must build in Microsoft Visual C++. Please use headers so the program will compile

  Menu with options to enter student information

Create a program that uses a menu with options to enter student information (name, ID, GPA), print student information, or quit the program. Use data files and FILE pointers to store and print information entered.

  Design a deck plan space ship in eclipse

Develop a simple interactive two-dimensional spaceship deck plan editor using OpenGL and GLUT. Your program will enable a user to create and save a deck plan of a hypothetical spaceship comprising the hull walls.

  Analyze a basic set of requirements for a problem

Create the main bank program. Note that you can create the main bank program in the main function or you can try to create another class for the main bank program.

  Give a complete pseudo-code description of the recursive

Give a complete pseudo-code description of the recursive merge-sort algorithm that takes an array as its input and output.

  Wrie a program that will generate a list of 10000 numbers

Wrie a program that will generate a list of 10000 numbers stored in an array with values 1 and 500.Print out any original 200 numbers to show the results(not one number per line either).Now sort the number using bubble sort

  Base process which communicate with child processes

Write a program which has a "base process" which communicates with child processes acting as "bombers" that it creates.

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