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.

Write the java rmi interface definition, In the programming assignments, yo...

In the programming assignments, you are going to develop a simple distributed ticket reservation system (DTRS). This system is used by customers (with unique 6-digit customerID s)

N-th padovan string p(n), write a program that count the number of occurenc...

write a program that count the number of occurences of string in the n-th padovan string p(n)   program in java // aakash , suraj , prem sasi kumar kamaraj college progr

Which models are supported by jms, Which models are supported by JMS? Pleas...

Which models are supported by JMS? Please, explain them. Ans) Publish or subscribe (pub/sub). This model permits a client (publisher) to send messages to a JMS topic. These mess

Explain java flow control, Explain java flow control ? if els...

Explain java flow control ? if else else if while for do while switch case break continue goto is a reserved word.

Padovan String, A Padovan string P(n) for a natural number n is defined as:...

A Padovan string P(n) for a natural number n is defined as: P(0)=''X'' P(1)=''Y'' P(2)=''Z'' for a string characters ''X'',''Y'',''Z'' only,and given value of n,write a program th

Java collection framework., #question.Write a program that computes the edi...

#question.Write a program that computes the edit distance (also called the Levenshtein distance, for its creator Vladimir Levenshtein) between two words. The edit distance between

What is the use of forwardaction, Normal 0 false false fals...

Normal 0 false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4

Extended eucleadian algorithm, inplementation of extended eucleadian algor...

inplementation of extended eucleadian algorithm in some cases

I want crime management website, I want Crime Management website Project...

I want Crime Management website Project Description: It is a web based project build in J2EE as front end and Oracle as back end for peoples so they will register complaints

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