[Solved]Lab Share Communicate Fellow Students Complete Lab Instructor Assign Group Within Group Se Q37183725
In this lab you will share and communicate with your fellowstudents to complete this lab. The instructor will assign you to agroup. Within your group you can set up a group WebEx, chat, skype,or other communication tool to determine how best to complete thislab. Each person will contribute to the collaboration portion tocomplete this lab. Include the Names of each member on your teamand a brief description as to how they participated.
Active participation is expected, but the quality, not thequantity, is the key to creating a successful collaborativelearning environment for everyone. Instructional approaches forthis course are highly interactive and experiential.
Your demonstrations of how to create both method contract andthe method specification for the GetCourseByCourseID() method ofthe CourseList class were very well received by your team members.They then asked you for one final demonstration of how to implementthe method specification using an object-oriented (OO) programminglanguage and see the method actually execute.
You realize that it is easy to implement the methodspecification in an OO programming language, but it is hard to testit because the rest of the application is not developed yet. Youdecided, therefore, to write two pieces of code.
- Code that implements the GetCourseByCourseID() method
- Code that implements a unit test for that method alone (outsideof any other application code)
This way you can demonstrate the method implementation and alsoverify its correct behavior.
You are under a deadline constraint for this deliverable, so youasked some of your peer architects for help. They each are wellversed in different OO languages like VB.NET, C#, and Java and theyall have done unit testing before so they are familiar of how toconstruct one.
Your peer architects provided you with partially-completedshells for your demonstration. Each shell contains:
- complete code for the Course class;
- partially completed code for CourseList class; and
- complete code for the CourseListTest class that unit tests theCourseList.GetCourseByCourseID() method.
Your task is now easy. Just select one of these shells andcomplete the code for the partially completed CourseList by codingit GetCourseByCourseID() method. When you compile and run theshell, it will automatically test your GetCourseByCourseID() codeto ensure its correct behavior.
Deliverables
- A copy of the code you wrote for the GetCourseByCourseIDmethod() of the CourseList class in your favorite OO programminglanguage.
- A screen shot of the output of running the provided unit testin the shell (the CourseListTest class) showing that your codeworks as expected. Note that these unit tests only print outmessages of testing problems. If your code is correct, the unittests will succeed silently without any success messages.
- A zip file of the completed shell after you added your code sothat the shell could be executed on a different machine.
- Verification and validation of your work.
- Explanation of your work.
I need help programming this in C# This code works butit does not ask for anything on the command prompt
class Sub
{
public Sub(string num, string name, int crdHrs, string summary,string preSub)
{
this.SubID = num;
this.SubTitle = name;
this.CredHrs = crdHrs;
this.Summary = summary;
this.PreSub = preSub;
}
public string SubID;
public string SubTitle;
public int CredHrs;
public string Summary;
public string PreSub;
}
class ListTester
{
public static void Main(string[] args)
{
GetCourseByidCE();
GetCourseByidCDNE();
}
public static void GetCourseByidCE()
{
Sublist list = new Sublist();
Sub course = list.GetCByCID(“IS 100”);
if (course.SubID != “IS 100”)
System.Console.WriteLine(“ERROR – GetCourseByidCE(): Returned IDdoes not matches to (IS 100)”);
}
public static void GetCourseByidCDNE()
{
Sublist list = new Sublist();
Sub course = list.GetCByCID(“IS 100A”);
if (course != null)
System.Console.WriteLine(“ERROR – GetCourseByidCDNE(): must returnnull”);
}
}
class Sublist
{
public Sub[] subArray =
{
new Sub (“IS 100”, “Java Programming”, 4, “Imp Class”, “IS 100A”),
new Sub (“IS 100A” ,”.NET Programming”, 4, “Advanced Concepts OfProgramming Language”, “IS 100”) ,
new Sub (“IS 100B”, “C Programming”, 4, “C Program Structure”, “IS100B”)
};
public Sub GetCByCID(string num)
{
return subArray.Where(b =>b.SubID == num).FirstOrDefault();
}
}
Expert Answer
Answer to In this lab you will share and communicate with your fellow students to complete this lab. The instructor will assign yo… . . .
OR

