Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C# method with this signature and submit the .cs file: public static ArrayList Union(ArrayList a, ArrayList b) The method should return a list
Write a C# method with this signature and submit the .cs file:
public static ArrayList Union(ArrayList a, ArrayList b)
The method should return a list of objects that are in either of the two argument vectors.
You'll use this program to answer questions in a subsequent exercise.
- You may discover a variety of ambiguities in the assignment. In other words, ample opportunities for defects exist. Describe as many possible defects as you can. Submit either a text file or a Word doc. (8 points)
- Create a set of test cases that you think would have a reasonable chance of revealing the faults you identified above and document the rationale in your test set as inline comments. (Note: you don't have to use a test framework for this. Just put your test code in Main() and call the Union method for each test. Print "test passed" or "test failed" for each test. Submit a .cs file including the Main() method with tests and the Union method. (12 points)
- (recommended) Run your tests with your implementation to ensure you get the expected results.
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