Purchase Solution

A basic C# program showing how to read numbers

Not what you're looking for?

Ask Custom Question

Create a program that includes the following requirements:

Create an Average class with a public data member to collect the sum of the integer entries and a public data member to hold the double average of the sum of the 10 integers.

Public class method to get each integer number input.

Public class method to calculate the average of the numbers input.

Public class method to output the average of the numbers input.

Main( ) function that instantiates one Average object, and includes a for loop to take 10 inputs and calls to the calculation and output method..

Thanks

Purchase this Solution

Solution Summary

This solution shows a basic C# program that reads numbers and calculates the average. It shows good object-oriented design.

Solution Preview

The attached cs file implements this solution. The trickiest part is dealing with reading ...

Purchase this Solution


Free BrainMass Quizzes
C# variables and classes

This quiz contains questions about C# classes and variables.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Basic Networking Questions

This quiz consists of some basic networking questions.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.