public class QuotationItem { private String code; private int… Image transcription textWrite a program to read quotation detail from a ?le
public class QuotationItem { private String code; private int… Image transcription textWrite a program to read quotation detail from a ?le, allowuser to make changes and save the updated quotationto another ?le. A quotation includes multipl… Show more… Show morepublic class QuotationItem { private String code; private int quantity; private double price; private double discount; public QuotationItem(String code, int quantity, double price, double discount){ this.code = code; this.quantity = quantity; this.price = price; this.discount = discount; } public String getCode() { return code; } public void setCode(String code) { this.code = code; } public int getQuantity() { return quantity; } public void setQuantity(int quantity) { this.quantity = quantity; } public double getPrice() { return price; } public void setPrice(double price) { this.price = price; } public double getDiscount() { return discount; } public void setDiscount(double discount) { this.discount = discount; } public double getTotal() { if(discount == 0) { return getQuantity()*getPrice(); } else { return getQuantity()*getPrice()*getDiscount(); } } public String toString() { return String.format(“Code: %s, Quantity: %d, Price: $%.2f, Discount: %.2f”, getCode(), getQuantity(), getPrice(), getDiscount() ); }} import java.io.*;import java.util.Scanner;import java.util.ArrayList;import java.util.List;public class Lab5 { public static void main(String[] args){ List


