tasks with the classes Currency, Money and Bank., JAVA Programming

Assignment Help:
In this assignment you work on a set of tasks with the classes Currency, Money and Bank.
Money and Currency
You have been given a template for the Currency and Money classes (Lab1.zip), and a specification in the form of a JavaDoc document Link. There is also a Bank class. All the methods of Currency.java and Money.java are empty.
First, write test cases for each method of these classes, and then fill in the methods with code that will make your test cases pass. Read the comments in all the Test Classes to find out what is expected to be covered in the test case and what should be implemented.
Bank
The Bank class was written by a brain-dead programmer. When you are confident you’re Money and Currency classes work as intended, write test cases for the Bank class and find the bugs. Again, the specification is provided in the JavaDoc document Link.
ToDo Checklist
1. Write the code for the body of the test cases methods for MoneyTest.java and CurrencyTest.java.
2. Motivate your test cases by commenting in the test methods. Make sure you read the available comments in the test methods and create your test cases according to those guidelines.
3. Complete the methods body in Money.java and Currency.java classes, and comment where necessary. Again make sure you follow the specification for each method and implement the required specification.
4. If you run your test cases for MoneyTest.java and CurrencyTest.java at this point, they should be all passed.
5. By reading the Bank.java specification in JavaDoc make your test cases according to the comments in the BankTest.java file. Specify which one of your test cases fails, by commenting in the corresponding test methods.
6. Find the bug in Bank.java base on the JUnit failure from the last step, and specify it by commenting the code where the bug is spotted. Explain how you managed to find the bug by running the unit tests.
7. Fix the bug and verify that BankTest.java passes successfully.

Related Discussions:- tasks with the classes Currency, Money and Bank.

Inheritance, Your task for this assignment is to define multiple classes vi...

Your task for this assignment is to define multiple classes via inheritance. Your classes should implement various "snacks" including "M&Ms", "Popcorn", etc. To begin, create an a

Using rmi build robust distributed systems-jdbc odbc, This work assesses th...

This work assesses the following Outcomes: • Build robust, secure distributed systems using advanced programming techniques Use RMI to build a distributed application accessing

Illustrate about object oriented programming, Object Oriented Programming ...

Object Oriented Programming   Java is basically object oriented. Each line of code you write in java should be inside a class (not counting import directives). OOP fundamental

Java program to calculate the commercial value of the stamps, You are asked...

You are asked to write a Java program to calculate the commercial value of the stamps owned by a philatelist. Each philatelist has a name and a collection of stamps. The stamps can

Javascript, You can declare a variable by the var statement such as: var...

You can declare a variable by the var statement such as: var strname = some value You can also declare a variable with simply assigning a value to the variable. Although, if

Implement the list calss, Your next task is to implement the MovieList clas...

Your next task is to implement the MovieList class that manages the details for a list of DVD Movies read from the specified data file. The constructor will include a parameter tha

Travelling salesman animation, how to implement tsp problem using java appl...

how to implement tsp problem using java applet to present in form of visulation

Help, Are you real? I dont want to get help from a computer

Are you real? I dont want to get help from a computer

Explain animate gifs, Explain Animate gifs? We can save 16 gif images ...

Explain Animate gifs? We can save 16 gif images of the previous instance in a single file in the form of an animated gif, and then used it in a regular tag to display a movi

Write Your Message!

Captcha
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