Question: Please solve in java Customer.java import java.text.DecimalFormat; class Customer { private String name; private String address; private String phone; private String email; private String petName;
Please solve in java
Customer.java
import java.text.DecimalFormat;
class Customer
private String name;
private String address;
private String phone;
private String email;
private String petName;
private String petType;
private int petAge;
private double petWeight;
public class Customer
String name, String address, String phone, String email, String petName, String petType, int petAge, double petWeight
thisname
name;
this.address
address;
this.phone
phone;
this.email
email;
this.petName
petName;
this.petType
petType;
this.petAge
petAge;
this.petWeight
petWeight;
public String getName
return name;
public String getAddress
return address;
public String getPhone
return phone;
public String getEmail
return email;
public String getPetName
return petName;
public String getPetType
return petType;
public int getPetAge
return petAge;
public double getPetWeight
return petWeight;
Invoice.java
public class Invoice
private static final double SALES
TAX
RATE
;
private Customer customer;
private double serviceCharges;
private double medicationCharges;
public Invoice
Customer customer, double serviceCharges, double medicationCharges
this.customer
customer;
this.serviceCharges
Mathmax
serviceCharges
;
this.medicationCharges
Mathmax
medicationCharges
;
private double calculateSalesTax
return Math.round
serviceCharges
SALES
TAX
RATE
;
public double calculateTotalCharges
return serviceCharges
medicationCharges
calculateSalesTax
;
public void printInvoice
DecimalFormat df
new DecimalFormat
#
;
System.out.println
Customer Name:
customergetName
;
System.out.println
Customer Address:
customergetAddress
;
System.out.println
Customer Phone:
customergetPhone
;
System.out.println
Customer Email:
customergetEmail
;
System.out.println
Pet Name:
customergetPetName
;
System.out.println
Pet Type:
customergetPetType
;
System.out.println
Pet Age:
customergetPetAge
;
System.out.println
Pet Weight:
customergetPetWeight
;
System.out.println
Service Charges: $
df
format
serviceCharges
;
System.out.println
Medication Charges: $
df
format
medicationCharges
;
System.out.println
Sales Tax: $
df
format
calculateSalesTax
;
System.out.println
Total Charges: $
df
format
calculateTotalCharges
;
Main.java
public class Main
public static void main
String
args
java.util.Scanner scanner
new java.util.Scanner
System
in
;
System.out.print
Enter customer name:
;
String name
scannernextLine
;
System.out.print
Enter customer address:
;
String address
scannernextLine
;
System.out.print
Enter customer phone number:
;
String phone
scannernextLine
;
System.out.print
Enter customer email:
;
String email
scannernextLine
;
System.out.print
Enter pet name:
;
String petName
scannernextLine
;
System.out.print
Enter pet type:
;
String petType
scannernextLine
;
System.out.print
Enter pet age:
;
int petAge
scannernextInt
;
System.out.print
Enter pet weight:
;
double petWeight
scannernextDouble
;
System.out.print
Enter service charges:
;
double serviceCharges
scannernextDouble
;
System.out.print
Enter medication charges:
;
