How to create both method contract and method specification

Assignment Help Basic Computer Science
Reference no: EM13778476

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.

Code that implements the GetCourseByCourseID() method

Code that implements a unit test for that method alone (outside of any other application 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 architects 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 construct one.

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; and
complete code for the CourseListTest class that unit tests the CourseList.GetCourseByCourseID() method.

Your task is now easy. Just select one of these shells and complete the code for the partially completed CourseList by coding it GetCourseByCourseID() method. When you compile and run the shell, it will automatically test your GetCourseByCourseID() code to ensure its correct behavior.

A copy of the code you wrote for the GetCourseByCourseID method() of the CourseList class in your favorite OO programming language
A screen shot of the output of running the provided unit test in the shell (the CourseListTest class) showing that your code works as expected. Note that these unit tests only print out messages of testing problems. If your code is correct, the unit tests will succeed silently without any success messages.

A zip file of the completed shell after you added your code so that the shell could be executed on a different machine.
Verification and validation of your work

Explanation of your work

Reference no: EM13778476

Questions Cloud

Stereotypes set by culture and society : Sociology came into existence in the 19th century to explain the enormous changes occasioned by the Industrial Revolution, urbanization, and an individualistic mind-set. Unlike agrarian communities, the emerging urban populations were large, numbe..
Java coding if-else while loop : Code a while loop that keeps printing "You are a DEDICATED student!" as long as the user enters an attendance rate of 90% or greater. Assume the loop-control variable, attendance, is already declared along with input for the Scanner class. The w..
Strongly counter-intuitive consequences : Review the Food Environment Atlas maps for variables that seem to affect your selected state the most. Select a state and variables you consider relevant to represent the food environment in you chosen state.
Meaningfulness of a correlation coefficient : What is the coefficient of determination? Why is it important to know the amount of shared variance when interpreting both the significance and the meaningfulness of a correlation coefficient?
How to create both method contract and method specification : 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
When making basic marks and marginal comments : When making basic marks and marginal comments, which strategy is LEAST helpful? Which of the following steps do not help writers develop research topics into appropriate lines of inquiry?
Strongly counter-intuitive consequences : Cultural relativists argue that moral standards exist only within specific societies; that there are no objective, culturally independent standards of morality.  Many people reject this position because it entails strongly counter-intuitive conseq..
Historic mistreatment of deserving black americans : Our efforts to address the problems of racial inequality have been centered in on one of our most important social institutions - education. While the schools of this country are a local place to focus these efforts, can we fix one problem without..
Discuss social and political ramifications of court decision : You will select a U.S. Supreme Court decision and conduct through analysis of the decision. Lastly, and most important, you will want to discuss the social and political ramifications of the courts decision, if any

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Prove true a similar statement for octal representation

suppose a 4n-bit number B is represented by an n-digit hexadecimal number H. Prove that the two's complement of B is represented by the 16's complement of H. Make and prove true a similar statement for octal representation.

  Display the users gross pay

Write a class that accepts a user's hourly rate of pay and the number of hours worked. Display the user's gross pay, the withholding tax ( 15% of the gross pay), and the net pay (gross pay - withholding). Save as Payroll.java

  Write a program that tests all fetures of new instruction

Implement a new nonunary instruction in place of NOP called ASLMANY whose operand is the number of times the accumulator is shifted left. Allow immediate, direct, and stack-relative addressing.

  Imagine an online registration application

Imagine an online registration application. Use your registration form as starting point for your analysis. Identify the entities that a potential database will need, along with their attributes. Try to establish unique identifiers for the records in..

  Explain cause and effect transition happen

One process could cause another process to make a transition. Under what circumstance, if any, would the following. Cause and effect transition happen ?

  What factors are involved in selecting architecture

Under what architecture would you classify technologies such as virtualization, cloud computing, and Web-based applications? Last, what factors are involved in selecting the architecture that is right for your organization?

  Utilize the internet to research recent investigations

utilize the internet to research recent investigations court cases new technological developments partnerships or other

  Designing the most secure network possible,

Term paper involves putting together the various concepts learned throughout this course. You are tasked with designing the most secure network possible, keeping in mind your goal of supporting three (3) IT services: email, file transfer (centralized..

  Design and test using logic works

Design and test using Logic Works a dual-output function to implement a full-adder in Sum-of-Products form. Show the transistor count on your schematic.

  What is called a whitespace character

Given an int variable modelYear write a statement that assigns true to norecall if the value of modelYear does NOT fall within the two recall ranges and assigns false otherwise. Do not use an if statement in this exercise!

  Fair and responsible use of college computer

Fair and Responsible Use of College Computers" and is based on the rules and regulation provided by your institution. Does your school have a similar policy? Does it contain all the elements listed in the text?

  Creating a database design in visio

Suppose a local college has tasked you to develop a database that will keep track of students and the courses that they have taken. In addition to tracking the students and courses, the client wants the database to keep track of the instructors te..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd