Course Solutions Uncategorized (Solved) : Please Help Java Code Two Errors Top Portion Code Making Mistake Code Package Project1 Pub Q35161603 . . . .

(Solved) : Please Help Java Code Two Errors Top Portion Code Making Mistake Code Package Project1 Pub Q35161603 . . . .

 

Please help me with this Java code I have two errors on the topportion of the code where am i making the mistake.

Here is my code:

package project1;

public class creditCard{

public static void main(String[] args){
  
CCard cc1 = new CCard(” Ivan Flores “, 0123 4567 8910 1112, ” March22, 2019 “);
  
cc1.CreditCharge(150);

cc1.Cash_Advance(0);
  
cc1.Payment(25);
  
cc1.Interest(5);
  
}
}
class CCard {

private String CustomerName;

private long AccountNumber;

private String DueDate;

public CCard(String CustomerName, long AccountNumber, StringDueDate) {

this.CustomerName = CustomerName;

this.AccountNumber = AccountNumber;

this.DueDate = DueDate;

System.out.println(“The Credit Card Details Are “);

System.out.println(“Acct Number” + AccountNumber);
System.out.println(“Customer Name” + CustomerName);
System.out.println(“Due Date” + DueDate);

}

public void CreditCharge(int charge) {
System.out.println(“Credit Card has a new Charge of $” +charge);
}

public void Cash_Advance(int Cash_Advance) {
System.out.println(“New Cash Advance

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post