Microsoft Visual C#: An Introduction to Object-Oriented Programming, Loose-leaf Version
Microsoft Visual C#: An Introduction to Object-Oriented Programming, Loose-leaf Version
7th Edition
ISBN: 9781337685771
Author: Joyce Farrell
Publisher: Cengage Learning
Question
Book Icon
Chapter 8, Problem 2E
Program Plan Intro

1. The following variables are used in the program.

  • num array of integer data type of size 10 is used to store the user-entered numbers.
  • max variable of integer data type is used to store the maximum value of the array.
  • min variable of integer data type is used to store the minimum value of the array.
  • total variable of integer data type is used to store the sum of all the elements of the array.
  • avg variable of double data types is used to store the average of all the elements in the array.

2. The following methods are used in the program:

  • fill() method to read numbers from console and assign to the array.
  • display() method to calculate the statistics and display the statistics of the array.

Program Description:

In this program, user-entered number are assigned to the array and its statistics are displayed to the user.

Blurred answer
Students have asked these similar questions
Pllleasassseee ssiiirrrr soolveee thissssss questionnnnnnn
Pllleasassseee ssiiirrrr soolveee thissssss questionnnnnnn
Pllleasassseee ssiiirrrr soolveee thissssss questionnnnnnn

Chapter 8 Solutions

Microsoft Visual C#: An Introduction to Object-Oriented Programming, Loose-leaf Version

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,