11.08.2015 Views

CIS 339 Tutorials / cis339dotcom

For more course tutorials visit www.cis339.com 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.

For more course tutorials visit
www.cis339.com


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.

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>CIS</strong> <strong>339</strong> iLab 7 - Object-Oriented Application Coding (Devry)Click Here to Buy the Tutorialhttp://www.cis<strong>339</strong>.com/product-23-<strong>CIS</strong>-<strong>339</strong>-iLab-7-Object-Oriented-Application-CodingFor more course tutorials visitwww.cis<strong>339</strong>cis<strong>339</strong>.comYour demonstrations of how to create both method contract and the method specification forthe GetCourseByCourseID() method of the CourseList class were very well received by yourteam members. They then asked you for one final demonstration of how to implement themethod specification using an object-oriented (OO) programming language and see themethod actually execute.You realize that it is easy to implement the method specification in an OO programminglanguage, but it is hard to test it 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 testfor that method alone (outside of any other application code)This way you can demonstrate the method implementation and also verify its correctbehavior.You are under a deadline constraint for this deliverable, so you asked some of your peerarchitects for help. They each are well versed in different OO languages like VB.NET, C#,and Java and they all have done unit testing before so they are familiar of how to constructone.Your peer architects provided you with partially-completed shells for your demonstration.Each shell contains:complete code for the Course class; partially completed code for CourseList class; andcomplete 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 andrun the shell, it will automatically test your GetCourseByCourseID() code to ensure itscorrect behavior.


Deliverables One Word file that contains the following. A copy of the code you wrote for theGetCourseByCourseID method() of the CourseList class in your favorite OO programminglanguage A screen shot of the output of running the provided unit test in the shell (theCourseListTest class) showing that your code works as expected. Note that these unit testsonly print out messages of testing problems. If your code is correct, the unit tests will succeedsilently without any success messages. An explanation of your work and the decisions youmade to arrive at your proposed code A zip file of the completed shell after you added yourcode so that the shell could be executed on a different machine i 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 it prior toreviewing this week’s video tutorial. Download the Method Specification for theGetCDByCDID() Method and review 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 and then downloadthe corresponding shell from the following.Visual Basic Shell C# Shell Java ShellBoth the Visual Basic and C# shells are Visual Studio projects while the Java shell includeonly the *.java source files that could be loaded into any Java IDE.Code and unit test the CourseList.GetCourseByCourseID() method in your favoriteprogramming language. You only need to add code for the GetCourseByCourseID() methodand then run the application (the unit test will automatically test your code), then print outproblem messages, if anyExplain your work and the decisions you made to arrive at your proposed solution.STEP 3: Submit your assignment

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!