Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java project credit card

gonzalmo
gonzalmo 


Project Summary Create a class, called CreditCard, which simulates the functionality of a credit card such as Visa or Mastercard. You can do simple things like make purchases, take cash advances and make payments. Important information about your card:  Annual Percentage Rate (APR) for previous month balance is 15.9%  Cash advance APR is 25.9% effective on the day of advance and until the end of the month (assume all months have 30 days but the year has 365 days)  Each balance transfer has a fee of $5 or 3% of the transfer, whichever is greater  Required minimum payment is 1.5% of balance or $25, whichever is greater  Due date is the 20th of the month  Late payment fee is $37 – if at least a minimum payment is not made within grace period (20 days)  Minimum Interest – if you are charged interest, the minimum amount will be $0.50  There is no annual fee ignore the lab text document. The second one is the correct guidelines. Attachments Tags
Clarifications

Answers

Credit Card Project

sudheer488
sudheer488 



Hey ,

I have done as per all the requirements mentioned in pdf.....
Attachments
output1.0.PNG (31 K) Download Preview

output1.1.PNG (28 K) Download Preview

CreditCard.java (5 K) Download Preview
amt; System.out.println("Make purchase of "+amt); System.out.println("Purchase Amount :"+amt+"\n \n \n"); //System.out.println("Dummy Balance"+this.new_bal); }else{ this.prev_bal = this.new_bal; System.out.println("Make purchase of "+amt); System.out.println("Request cancelled: provide a positive amount \n \n \n "); //System.out.println("Dummy Balance"+this.new_bal); } } public void balanceTransfer (double amt)

Screenshots
Screenshot
Screenshot
Purchase Answer

CIS 162 Credit Card - Solution

mariobeka
mariobeka 



The solution was made following the requirements stated in the pdf file. A sample output of the program is also provided as a screen shot. Attachments
cis162.zip (3 K) Download


Preview
System.out.println("Error with transfer minimum fee"); errors++; } brenda.balanceTransfer(200); if (brenda.getBalanceTransfers() != 201.0) { System.out.println("Error with multiple transfers"); errors++; } if (brenda.getFees() != 11.0) { System.out.println("Error with transfer fees"); errors++; } brenda.cashAdvance(-20, 5); if (brenda.getCashAdvances() > 0) { System.out.println("Error with negative cash advance"); errors++; } brenda.cashAdvance(20, 46); if (brenda.getCashAdvanc

Preview
public double getPurchases() { return purchases; } public double getBalanceTransfers() { return balanceTransfers; } public double getCashAdvances() { return cashAdvances; } public int getNumPurchases() { return numPurchases; } public String getName() { return name; } public void applyCredit(double amt) { if (amt < 0) { System.out.println("Request cancelled: provide a positive

Screen Shot 2016-10-16 at 17.51.11.png (147 K) Download Preview

Screenshots
Screenshot
Purchase Answer