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.

Name conflicts when importing packages, Name Conflicts when importing packa...

Name Conflicts when importing packages It is possible which you will try to import a package which contains classes in which have the similar name as a class in your own source

What content issues is happened in java language, What Content Issues is ha...

What Content Issues is happened in java language? Some people claim in which Java is insecure since it can show the user erotic pictures and play flatulent noises. By this stan

Vending machine, i have got project of Vending machine. would you please he...

i have got project of Vending machine. would you please help me about how to start and how to use coding.thanks

Create a simple object based gui application, Objective: create a simple o...

Objective: create a simple object, put that object in a simple collection class, use that object and collection in a simple GUI application. Specification:  Consider a Librar

Getting code, can i have code on this assignment: The code in the main meth...

can i have code on this assignment: The code in the main method should do the following: 1. Prompt the user for a string input value for the amount in dollars and store it in a va

Describe what is bytecode, Describe what is bytecode? It is an inst...

Describe what is bytecode? It is an instruction set. It extends with class. 'javac' compiler translates the .java file into .class. JVM interprets bytecode.

What can you do with an exception once you''ve caught it, What can you do w...

What can you do with an exception once you've caught it? 1. Fix the difficulty and try again. 2. Do anything else instead. 3. Exit the application along with System.exit() 4

Explain overriding methods and the solution, Explain Overriding Methods: Th...

Explain Overriding Methods: The Solution The object oriented solution to this problem is to describe a new class, call it SlowCar, that inherits from Car and imposes the additi

Toward privacy preserving and collusion resistance, Need Toward Privacy Pre...

Need Toward Privacy Preserving and Collusion Resistance in a Location Proof Updating System Project Description: Today's location-sensitive service relies on user's mobile de

Midlet game, do you have example of a simple midlet game ?

do you have example of a simple midlet game ?

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