Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started