Question: Q2 (5 Marks): CLO 4 You are asked to write a program for a Pharmacy POS. The application should define the amounts per order and

 Q2 (5 Marks): CLO 4 You are asked to write a

Q2 (5 Marks): CLO 4 You are asked to write a program for a Pharmacy POS. The application should define the amounts per order and the total amount of orders. A. Create a JFrame Form "PharmacyPos". Orders text area and Total Amount text field is disabled for the user. B. The pharmacist can insert a medicine name and medicine price in the corresbonding text fields. When button "ADD" Is pressed, the program shall get the values from the text fields and the check box. Then pass the name, the price, and the status of the check box to the class Medicine. Then call the toString to add details (appeand it) in the Orders text area. The program shall calculate the total amount and display it in its corresponding text field Pharmacy Pos public class Medicine private String midName, private double price private hoolean hasVAT private static double to mount Medicine ADO Price CLR VAT inches public Medicine (String midame, double price, boolean VAT) this midame midName: this hasVAT hasVAT this.SVAT) this priceprice. 1.05 ebe this priceprice totalAmount this Orders V 30 AED Pan AD public static double et Totalment return totalment Total Amount Onde public String to returidan AID" Q2 (5 Marks): CLO 4 You are asked to write a program for a Pharmacy POS. The application should define the amounts per order and the total amount of orders. A. Create a JFrame Form "PharmacyPos". Orders text area and Total Amount text field is disabled for the user. B. The pharmacist can insert a medicine name and medicine price in the corresbonding text fields. When button "ADD" Is pressed, the program shall get the values from the text fields and the check box. Then pass the name, the price, and the status of the check box to the class Medicine. Then call the toString to add details (appeand it) in the Orders text area. The program shall calculate the total amount and display it in its corresponding text field Pharmacy Pos public class Medicine private String midName, private double price private hoolean hasVAT private static double to mount Medicine ADO Price CLR VAT inches public Medicine (String midame, double price, boolean VAT) this midame midName: this hasVAT hasVAT this.SVAT) this priceprice. 1.05 ebe this priceprice totalAmount this Orders V 30 AED Pan AD public static double et Totalment return totalment Total Amount Onde public String to returidan AID

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!