Write a java program which collect the user details such as Customer Name, Mabile Number, Item Name and Unit price of an item. User must collect the proper inputs using Java dialog controls and do process based on the conditions (check the privilege card, calculate discaunt, and display the proper autput using lava dialog controls. Find below the sereen shots/steps for input and autputs. Step 1: Input Customer Name, Mobile Number, Item Name to purchase, Unit Price nput Input 2 ter y na ? Enter your Mobile number Wmed ON Cace OK Cancel Ingut Input Enter Unit Price in BHD Enter Hem name You want Apple iPhone 12 Pro, 50,2560 OK Cancel OK Cancel Input Number of items OK Cancel Step 2: Check Whether the user has the Privilege card: Previlege Card Do you have our company Previlege Card ? Yes Step 3: If the Customer Click Yes Button Display the Discount details in the following manner Discount Details Credit Card 10% Debit card.5% ,Cash 2% OK

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Pleased solve this important homework.
Step 4: Choose Your Option:
Yes: Credit Card - 10% Discount
Na: Debit Card - 5% Discount
Cancel - Cash 2% Discount
Yes-Credit card No-Debit Card Cancel-. X
? Choose your option
Yes
No
Cancel
Step 5:
a) If you user clicks Yes Button :
Sample Output:
Customer Name Ahmed Mobile Number 39396345
Rem Name Apple Phone 12 Pro 5G 256GB Unit Price 516.0 Amount: 1548.OFinal Amount After Discount - 1393.2
OK
b) If user clicks No Button:
Calculate discount (5%) for Debit card and display the proper output
c) If user clicks Cancel Button
Calculate discount (2%) for cash transaction and display the proper output
Transcribed Image Text:Step 4: Choose Your Option: Yes: Credit Card - 10% Discount Na: Debit Card - 5% Discount Cancel - Cash 2% Discount Yes-Credit card No-Debit Card Cancel-. X ? Choose your option Yes No Cancel Step 5: a) If you user clicks Yes Button : Sample Output: Customer Name Ahmed Mobile Number 39396345 Rem Name Apple Phone 12 Pro 5G 256GB Unit Price 516.0 Amount: 1548.OFinal Amount After Discount - 1393.2 OK b) If user clicks No Button: Calculate discount (5%) for Debit card and display the proper output c) If user clicks Cancel Button Calculate discount (2%) for cash transaction and display the proper output
Write a java program which collect the user details such as Customer Name, Mobile Number, Item Name
and Unit price of an item. User must collect the proper inputs using Java dialog controls and do process
based on the conditions (check the privilege card, calculate discount, and display the proper autput using
Java dialog controls. Find below the screen shats/steps for input and autputs.
Step 1: Input Customer Name, Mobile Number, Item Name to purchase, Unit Price
Input
Input
?
Eter your n
?
Enter your Mobile number
Ahmed
39396568
ON
Cencel
OK
Cancel
Input
Input
Enter Unit Price in BHD
?
516
Enter tem name You want
Apple iPhone 12 Po, 50,2560e
OK
Cancel
OK
Cancel
Input
Number of items
OK
Cancel
Step 2: Check Whether the user has the Privilege card:
Previlege Card
? Do you have our company Previlege Card ?
Yes
No
Step 3: If the Customer Click Yes Button:
Display the Discount details in the following manner
Discount Details:
Credit Card-10%
Debit card-5%
,Cash 2%
OK
Transcribed Image Text:Write a java program which collect the user details such as Customer Name, Mobile Number, Item Name and Unit price of an item. User must collect the proper inputs using Java dialog controls and do process based on the conditions (check the privilege card, calculate discount, and display the proper autput using Java dialog controls. Find below the screen shats/steps for input and autputs. Step 1: Input Customer Name, Mobile Number, Item Name to purchase, Unit Price Input Input ? Eter your n ? Enter your Mobile number Ahmed 39396568 ON Cencel OK Cancel Input Input Enter Unit Price in BHD ? 516 Enter tem name You want Apple iPhone 12 Po, 50,2560e OK Cancel OK Cancel Input Number of items OK Cancel Step 2: Check Whether the user has the Privilege card: Previlege Card ? Do you have our company Previlege Card ? Yes No Step 3: If the Customer Click Yes Button: Display the Discount details in the following manner Discount Details: Credit Card-10% Debit card-5% ,Cash 2% OK
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 8 images

Blurred answer
Knowledge Booster
Fundamentals of Robotics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education