Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C# with visual studio fix the code in the program.cs file so that it will run the code will create an enumerator and enumeration once
C# with visual studio
fix the code in the program.cs file so that it will run
the code will create an enumerator and enumeration
once the code is fixed, the main should print out the objects in the enumeration by using a for loop
8 namespace 1AnVeryBroken class Program 12 13 static void Main(stringt1 args) 15 16 17 EnemiesEnun badArmy = new EnemiesEnum(); /r write the foreach statment here foreach( 21 public class EnenyEnumerator: IEnumerator private stringl]_theList; private int-index =--set this value properly; 28 public EnemyEnumerator(string[) incomingArrayOfBad Guys) //initialize thelist to be the same size as the incoming array -theList = new what goes here?; for (int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started