Question
Please Help with the Following Java Programming Problem! Use javaFX and event handling concept to code the program. You are running a Computer shop
Please Help with the Following Java Programming Problem!
Use javaFX and event handling concept to code the program.
You are running a Computer shop where you are selling some computer parts.
Price for Mouse is $10.0 each
Price for USB is $20.0 each
Price for Charger is $15 each
Write code to design the following GUI. You can use any creative way to design your interface. Use appropriate title for interface.
Write code to perform following task:
The three text boxes in this program initially disabled. To enter value in the each text box you would check mark the each check box for an item a customer was purchasing.
This would enable that item's text field so you can enter the quantity. You would complete this for each type of item the customer was purchasing.
After entering the quantities of each item, you would click the Total button.
Total button would calculate the price of each item and add them to calculate final total.
Sample run:
Following run would show output in the text area if you have two text field selected.
You can enter a discount in the Discount field if you wish. If a discount was entered, then total button subtracts the discount amount from total of mouse and usb. Check the following sample run:
Your program needs to work for any combination of text field you select to enter value.
For example, calculate total of USB and Charger.
Another example would be calculated total of USB only
Another combination would be calculate total of Mouse, USB and Charger
So please check all possible combination to calculate total and display in text area
Write code for the Reset button which puts the form back to its original state (quantity text fields disabled and cleared, check boxes unchecked, text area and discount field cleared).
Write code for Exit button which exits the program confirming with user.
Use proper data validation to read value from each text box.
Subtract Discount TOTAL RESET EXIT Mouse @$10 each USB @$20 each Charger @15 each
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