Answered step by step
Verified Expert Solution
Link Copied!

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.

  1. 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)

  1. 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)
  2. (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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

=+ b. A change in weather patterns increases the depreciation rate.

Answered: 1 week ago