Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

For shipping quote method specification Use structured English based algorithms(

ID: 3910695 • Letter: F

Question

For shipping quote

method specification Use structured English based algorithms( I need 5 method specifications i included a template)

Font Paragraph Style Method Name: isValidPIN Contract ID: 58 Programming Language ass Name: Account ID: 123 Programmer: John Doe Date Due: 7/4/2017 Visual Basic_ Smalltalk C++ X Java Triggers/Events Validating a PIN rguments Received: Data ??? Notes String he ATM Card Number he Customer PIN String Messages Sent & Arguments Passed: |Argument Data Type Notes Returns an instance of a Customer Returns the customer's PIN CardNum String Argument Returned: Data Type Notes If the provided PIN is associated with a valid Customer Account, then isValid will be set to true. Otherwise, it will be set to false isValid Boolean Algorithm Specification CustAccount getCust CardNum) IF Cust.aetATMPIN() == PIN RETURN true ELSE RETURN false

Explanation / Answer

First we will create a Customer class :-

Customer.java :-

It would include the setters and getters for customerName ,atmpin and basic constructor.

Assuming a customer can have multiple cards there will be getter which would take cardnum as an argument.

Then we will create Account class :-

Account.java

It would include the basic customer information , and setters and getters for them.

Now let us write an algorithm for isValidPIN :-

isValidPIN(String CardNum,String PIN)

boolean isValid;

                customer = Account.getCustomer(); // getting the instance for customer.

                if (customer.getATMPIN(CardNum) == PIN) // using the customer object to get the customer’s pin

                                isValid = true;

                else

                                isValid=false;

                return isValid;