Explore BrainMass
Share

A basic C# program showing how to read numbers

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

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

© BrainMass Inc. brainmass.com October 25, 2018, 1:38 am ad1c9bdddf
https://brainmass.com/computer-science/c-sharp/a-basic-c-program-showing-how-to-read-numbers-269506

Solution Preview

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

Solution Summary

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

$2.19
See Also This Related BrainMass Solution

BLOBS and Database Management

1. What is it about a 200 MB video or audio file that makes it so much more of a database management challenge than a relational database the same size?

2. What can be done to make the data in these multimedia files more manageable, queryable, reportable and analyzable?

View Full Posting Details