// Directions: Intermediate #5-1 - Movie Theatre
// 1) Fork this fiddle to your work area.
// 2) Create a two dimensional array for representing monthy attendance called attendance.
// 3) Using two nested loops, assign random numbers to the array element ranging from and including 0 to and including 200.
// 4) Submit your dotnetfiddle link in Blackboard.
// Output
using System;
public class Program
{
public static void Main()
// 1) Create a two dimensional array for representing monthy attendance called attendance.
// a. There are 12 months in a year and will be the rows.
// b. We should have 5 different movies in a year. They will be the columns.
// 2) Using two nested loops, assign random numbers to the array element ranging from and including 0 to and including 200.
// 3) Dump the data.
// attendance.Dump();
int[,] attendance = new int[12, 5];
Random random = new Random();
for (int i = 0; i < 12; i++)
for (int j = 0; j < 5; j++)
attendance[i, j] = random.Next(201);
}
attendance.Dump();