Create both method contract and the method specification

Assignment Help JAVA Programming
Reference no: EM13812029

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

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

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

Reference no: EM13812029

Questions Cloud

Complete the design details of the classes in the package : The design phase of the SRS project is in full swing and every developer on the team is assigned a group of packages to work on and to complete the design details of the classes in the package. To help speed up the design process, you-as the softw..
How much tension does the bird produce in the wire : Determine the coefficient of kinetic friction between the puck and the ice and How much tension does the bird produce in the wire.
Linkage between the pairs of metrics : Specifically describe the linkage between the following pairs of metrics (Note: In each pair, the first metric is the kind of measurement the supervisors and managers would monitor and be evaluated on, and the second is the bigger picture metric t..
Discuss the historical perspective of time when each policy : Discuss the historical perspective of the time when each policy was discussed or implemented. Indicate the context or the problem of the day and the urgency for the policy.
Create both method contract and the 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
What is the maximum mass that the painter can have : What is the maximum mass that the painter can have before the ladder begins to slip? (HINT: use the conditions for equilibrium.
Implement polymorphism and dynamic binding : We are going to implement Polymorphism and dynamic binding by creating generalized methods that accept generalized Employee objects to collect input and display information. However, in the main method we will pass derived objects of the Employee ..
Implementing inheritance by creating generic superclass : You will be implementing inheritance by creating a generic Racer superclass along with two subclasses called StreetTuner and HotRod. You will make the Racer class abstract and include the abstract method IsDead in the Racer class
Discuss the model that bruce tuckman designed decades : Spend some time discussing your position and feelings, including opinions, hurt feelings, problems caused in your group, etc. Discuss the model that Bruce Tuckman designed decades ago that is still considered a major work and is used today. Use the L..

Reviews

Write a Review

JAVA Programming Questions & Answers

  The objective is to implement a menu-based system for bank

the objective is to implement a menu-based system for bank accounts in order to simulate a very simple banking system.

  Write a java statement to create an arraylist

Write a java statement to create an ArrayList called list to hold 25 integers - What is the type of the ArrayList defined in question number 1.

  Compilation and Execution - JAVA problem

Style marks are based on how your submitted code looks. Remember that good code is easily readable (and understandable) by someone who did not write it. For assignments, you should also include your name, student number, what course this is, what ass..

  Write a one-class java program

Write a one-class Java program with at least one method (besides main) to determine if the data in your dataset (i.e., in data.txt) follows Benford's law.

  Implement a class called reversewords

Implement a class called ReverseWords that uses a stack to output a set of elements input by the user in reverse order.

  Improve the word jumble game

Improve the Word Jumble game presented in this chapter so that each word is paired with a hint. If the player enters hint, then the program should show the corresponding hint.

  1 give the big o for the followinga n2 6n 32b n 6c

1 give the big o for the followinga. n2 6n 32b. n 6c. analyze the code below for integer n

  Java program to declares integer array

Write a complete Java program to declares integer array, intArray, and initialize it to {1, 2, 3, 4, 5, 6, 7}.

  Write a program that reads in a list of numbers from a file

write a program that reads in a list of numbers from a file and adds up all those numbers. You may hard code in the name of the file, allowing the user to input the filename is not required

  Overriding the equals method

Use the equals method, which Player inherits from the Object class, to determine whether two players are the same. Are the results what you expect?

  Write a recursive method that takes two non-negative integer

Write a recursive method that takes two non-negative integers m and n as parameters and returns the product.

  Write java program to utilizes gui with five text fields

Write down the program called MaxMinAvgGUI.java which utilizes GUI with five(5)text fields which asks user to enter 5(five) decimal numbers. 1(one)number in each text field.

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