Objetives in the project attached I need the next steps:
It has a method called withdraw that receives by parameter an amount without decimals of money in euros, checks if the cashier has that amount among all its deposits and returns an array of 3 boxes (one per type of ticket) with the amount of bills of each Type that dispenses for the quantity requested. It also updates the amount of money left in each dispenser after the operation. For example, if you asked for € 60 and the cashier had 5 € 10, € 20 and € 50 bills, then you would return an array where box 0 (= 10 €) would be 1, box 1 (= 20 €) would be 0 and box 2 (= 50 €) would be 1. After the operation, there would be, 4, 0 and 0 banknotes, respectively. In case of not being able to give bills, for whatever reason, it throws an exception.
Complete debitcard y creditcard follow the comments.
I need do the unit test of the method:
Public float (float amount) throws Exception
Of the Account class. Remember that this method increases the account balance, i.e. The balance instance attribute, the amount indicated by parameter. In addition, this method returns the balance value after adding the amount indicated by parameter. However, if the value of the amount parameter is negative, instead of returning the balance value, you must throw an exception of type Exception with the message "The amount of money you want to deposit can not be a negative value !!" and Not increase the balance value.
At this point, you are asked:
A) Uses the JUnit library that comes integrated in Eclipse to test the method deposit (float amount). To do this you must create an [url removed, login to view] file containing the test method testDeposit_Float.
7 freelancers are bidding on average $35 for this job
Hi, Greetings! I have quite a great experience in Java and have been doing enterprise projects in my career span. Lets connect to discuss in detail. Appreciate it Thanks & Regards, Pooja Ayre