Devry CIS 115 Week 6 Lab Latest

$20

Quantity:

Description

Devry CIS 115 Week 6 Lab Latest

 

Week 6 – int Array Program

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

namespace Week6_Int_Array_Program

{

classProgram

{

staticvoid Main(string[] args)

{

// Declare Array (Globally, not Local)

int[ ] myIntArray =newint[5];

//Declare Total and Average

int total = 0;

int average = 0;

//Initialize Array to Zeros

for (int i = 0; i < myIntArray.Length; i )

{

myIntArray[i] = 0;

} // end of for loop

myIntArray[0] = 90;

myIntArray[1] = 75;

myIntArray[2] = 95;

myIntArray[3] = 85;

myIntArray[4] = 100;

//Processing – Accumulate Totals

for (int i = 0; i < myIntArray.Length; i )

{

total = total myIntArray[i];

} // end of for loop

average = total / myIntArray.Length;

//Output

for (int i = 0; i < myIntArray.Length; i )

{

Console.WriteLine(“Value is: ” myIntArray[i]);

} // end of for loop

//Output of Total and Average

Console.WriteLine(“Total is: ” total);

Console.WriteLine(“Average is: ” average);

}

}

}

 

DeVry Courses helps in providing the best essay writing service. If you need 100% original papers for Devry CIS 115 Week 6 Lab Latest, then contact us through call or live chat.

Devry CIS 115 Week 6 Lab Latest

Best Devry CIS 115 Week 6 Lab Latest

Devry CIS 115 Week 6 Lab Latest