Cis 339 ilab 7 of 7

66 views
39 views

Published on

Your demonstrations of how to create both method contract and the method specification for the GetCourseByCourseID() method of the CourseList class were very well received by your team members. They then asked you for one final demonstration of how to implement the method specification using an object-oriented (OO) programming language and see the method actually execute.

You realize that it is easy to implement the method specification in an OO programming language, but it is hard to test it because the rest of the application is not developed yet. You decided, therefore, to write two pieces of code.

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
66
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cis 339 ilab 7 of 7

  1. 1. SOLUTIONJUG.COMCIS/339 iLab 7 of 7CLICK HERE TO GET THE SOLUTION !!!!!!!!Your demonstrations of how to create both method contract and the method specification for theGetCourseByCourseID() method of the CourseList class were very well received by your teammembers. They then asked you for one final demonstration of how to implement the methodspecification using an object-oriented (OO) programming language and see the method actuallyexecute.You realize that it is easy to implement the method specification in an OO programming language,but it is hard to test it because the rest of the application is not developed yet. You decided,therefore, to write two pieces of code.Code that implements the GetCourseByCourseID() method1. Code that implements a unit test for that method alone (outside of any otherapplication code)This way you can demonstrate the method implementation and also verify its correct behavior.You are under a deadline constraint for this deliverable, so you asked some of your peer architectsfor help. They each are well versed in different OO languages like VB.NET, C#, and Java and they allhave done unit testing before so they are familiar of how to construct one.Your peer architects provided you with partially-completed shells for your demonstration. Each shellcontains:complete code for the Course class;partially completed code for CourseList class; and1. complete code for the CourseListTest class that unit tests theCourseList.GetCourseByCourseID() method.Your task is now easy. Just select one of these shells and complete the code for the partiallycompleted CourseList by coding it GetCourseByCourseID() method. When you compile and run theshell, it will automatically test your GetCourseByCourseID() code to ensure its correct behavior.DeliverablesOne Word file that contains the following.A copy of the code you wrote for the GetCourseByCourseID method() of theCourseList class in your favorite OO programming languageA screen shot of the output of running the provided unit test in the shell (theCourseListTest class) showing that your code works as expected. Note thatthese unit tests only print out messages of testing problems. If your code iscorrect, the unit tests will succeed silently without any success messages.
  2. 2. An explanation of your work and the decisions you made to arrive at yourproposed code1. A zip file of the completed shell after you added your code so that the shellcould be executed on a different machinei L A B S T E P SSTEP 1: Review the Method Contract, Method Specification for the GetCDByCDID()Method, and Coding & Unit Testing GetCDByCDID() Method using Java (not Graded)Download the Method Contract for GetCDByCDID() Method and review itprior to reviewing this week’s video tutorial.Download the Method Specification for the GetCDByCDID() Method andreview it prior to reviewing this week’s video tutorialSTEP 2: Code & Unit Test the GetCourseByCourseID() method of the CourseList classDecide on your OO programming language that you will use for this lab andthen download the corresponding shell from the following.1. Visual Basic Shell2. C# Shell3. Java ShellBoth the Visual Basic and C# shells are Visual Studio projects while the Java shell include only the*.java source files that could be loaded into any Java IDE.Code and unit test the CourseList.GetCourseByCourseID() method in yourfavorite programming language. You only need to add code for theGetCourseByCourseID() method and then run the application (the unit test willautomatically test your code), then print out problem messages, if any1. Explain your work and the decisions you made to arrive at your proposedsolution.STEP 3: Submit your assignmentCopy and paste into a Word document:your code for the GetCourseByCourseID() method;a screen shot of running your unit test; and1. your explanation of your work and the decisions you made to arrive at yourcode.Save your document with the file name CIS339_Lab7_YourName.Then, zip all the lab file into one zip file so that the entire project would run on a different machine.Save your zip file with the file name CIS339_Lab7_YourName.zip.CLICK HERE TO GET THE SOLUTION !!!!!!!!

×