Question
Description: Develop a Java program that creates a standalone GUI application that simulates an e-store which allows the user to add in stock items to
Description: Develop a Java program that creates a standalone GUI application that simulates an e-store which allows the user to add in stock items to a shopping cart and once all items are included, total all costs (including tax),produces an invoice, and appends a transaction log file. Can you upload the code through another site where I am able to download it and also use Eclipse IDE to do the project? Can you also make an original GUI not from the answers already given on Chegg?
Your program development must include the following steps:
1.Create a main GUI containing the following components:
a. An area that allows the user to input data into the application along with the descriptive text that describes each input area.
b. A total of six buttons as shown below with functionality as described below.
c. As illustrated below, the various buttons on the interface are only accessible at certain points during a users interaction with the e-store.
2. An input file named inventory.txt. This is a comma separated file which contains the data that will be read by the application when the user makes a selection. Each line in this file contains four entries; an item id(a string), a quoted string containing the description of the item, in stock status (a string), and the unit price for one of the item(a double). A sample file is provided for you.
3. An output file (append only) named transactions.txt must be created that uniquely logs each user transaction with the e-store. The unique transaction id will be generated as a permutation of the date/time string when the transaction occurred(see below).
Input Specification: The file inventory.txt as described above(see example below as well). Output Specification: Output is to appear in the specified components of the GUI and various message boxes that appear, plus the contents of the transactions.txt log file that will be generated.
Examples inventory.txt file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 inventory.txt ||14, "Stanley #2 Philips Screwdriver", true, 6.95 2342, "Polar USB mini desk fan", false, 10.50 22389, "Swingline Model B2200 stapler", true, 18.00 3451, "Oakley Jawbreaker sunglasses", true, 236.00 4452, "Colnago stem - black 130mm", false, 145.99 56718, "Tamiya Mclaren MP4-8 Ford 1/20", false, 75.00 14909, "1/4in - 28tpi SS nuts", true, 1.00 2190, "Hefty 30 gal with handles - box 40", true, 19.00 22345532, "3 ft mini USB cable M-F", true, 4.50 678944, "EZ-ink cartrige set for Epson 4630", false, 75.00 234887, "2021 CSX train calendar", true, 12.95 198, "Box of 10 Sharpie Roller 0.5mm", true, 6.50 298765, "3x5 index cards - 100 count", true, 2.25 7654, "Bell Stratos helmet - size Lg - blue", false, 230.00 65435689, "12x16 paper cutter with ruler", true, 35.95 8543, "Ritchey 1 inch threaded headset - silver", true, 45.00 38712987, "Wilson NCAA official softball - 1 ea", true, 5.50 2234983, "Wilson NCAA official softball - 1 doz", true, 55.00 23, "Tamiya 2oz paint - ferrari red", true, 2.39 97634, "Campagnolo 12 spd crankset 53/39 175mm", true, 750.00 85456, "Campagnolo 12 spd rear der", true, 350.00 67913, "Gios Torino t-shirt size XXL", true, 25.00 387, "Brachs butterscotch hard candy - 1 lb", true, 4.50 113355, "The Bourne Identity - blu-ray", true, 15.95 1111, "Top Secret Twenty One - Janet Evanovich", true, 8.99 286934, "1 lb - coffee beans", true, 6.50 358922, "25 lbs peanuts in shell", false, 45.00 47831, "8x10 picture frame", true, 4.95 19981, "Pledge furniture polish 13oz", true, 6.50 228865, "3M Super 33+ electrical tape", true, 3.50 228865x, "3M Super 33+ electrical tape box 10", true, 32.50 4762, "HP copy paper ultra white - ream", true, 13.50 29741, "Plush teddy bear 8 inch", true, 24.00 339921, "Yamaha KT 100 kart engine", true, 950.00 115693, "Colnago C64 - Mapei frame", true, 6500.00 582913, "Look Keo 2 Max pedals", true, 135.00 4499120, "M&Ms dark chocolate w/peanuts - 30z", true. 2.50 268, "Sidi Wire 2 carbon shoes", true, 499.99 89476, "Assos T-Evo shorts", true, 299.95 245667, "Colnago jersey size 6", true, 120.00 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 line 1 Column 1 Tah Ciz. A Dlain Tavt 2. Initial GUI: Completes an order generates invoice and adds to the transaction file. Nile Dot Com - Spring 2021 Enter number of items in this order: Enter item ID for Item #1: Enter quantity for Item #1: Item #1 info: Order subtotal for 0 item(s): Process Item #1 Confirm item #1 View Order Finish der New Order Exit Quit! Allows for processing an item once it is selected. Confirms that the item is correct. Note that the "Confirm Item". View order", and "Finish Order" buttons are not initially "active". Clears order and starts over - no write to transaction file View the order so far. 3. GUI after user specifies total number of items in the order and makes a selection for item #1, but before clicking the Process Item button. Nile Dot Com - Spring 2021 Enter number of items in this order. Enter item ID for Item #1: 3451 Enter quantity for Item #1: 2 Item #1 info: Order subtotal for 0 item(s): Process Item #1 Confirm Item #1 View Order Finish Order New Order Exit 4. GUI after user has selected the first item and clicked the Process Item #1" button. Nile Dot Com - Spring 2021 D Enter number of items in this order: 2 Enter item ID for Item #1: 3451 Enter quantity for Item #1: 2 Item #1 info: 3451 "Oakley Jawbreaker qunglasses" $236.00 2 0% $472.00 Order subtotal for 0 item(s): Process Item #1 Confirm Item #1 View Order Finish Order New Order Exit Note that the Confirm Item #1 button is now active and the Process Item #1" button is inactive. Information on the item selected/purchased has been extracted from the inventory file and written into the window on the line for item #1. Note proper currency formatting 5. When the user clicks on the Confirm Item #1 button, a confirmation information message appears on the screen. Message x Message 0 Item #1 accepted i item ID 3 not in file OK OK User entered an incorrect item ID. This message would be displayed when user pressed the Process Item button. This is the only error" you will need to catch. 6. The main GUI after the user has confirmed the first item. Discount is based on the quantity of a item. If: 1-4 = 0% 5-9 = 10% 10-14 = 15% >=15= 20% Nile Dot Com - Spring 2021 Enter number of items in this order. 2 Enter item ID for Item #2: Note that the buttons change number. Enter quantity for Item #2: Item #1 info: 3451 "Oakley Jawbreaker sunglasses" $236.00 2 0% $472.00 Order subtotal for 1 item(s): $472.00 Process Item #2 Confirm Item #2 View Order Finish Order New Order Exit Note that the text areas for entering the second item information are cleared and ready for input Subtotal should reflect current total of all confirmed items. Information for previous item remains on display. 7. User enters and processes (but has not yet confirmed) the next item in the order (which is the last one for this order). Nile Dot Com - Spring 2021 Enter number of items in this order: 2 Enter item ID for Item #2: 23 Enter quantity for Item #2: 5 Item #2 info: 23 Tamiya 2oz paint-ferrari red" $2.39 5 10% $10.76 Order subtotal for 1 item(s): $472.00 Process Item #2 Confirm Item #2 View Order Finish Order New Order Exit 8. The GUI after the user has entered the information for all the items and confirmed the last item. Nile Dot Com - Spring 2021 Number of items in this order. 2 Item #2 info: 23 Tamiya 2oz paint-ferrari red" $2.395 10% $10.76 Order subtotal for 2 item(s): $482.75 Process Item Confirm Item View Order Finish Order New Order Exit 9. When the user clicks the View Order button, the following message box should appear. Message x i 1. 3451 "Oakley Jawbreaker sunglasses" $236.00 2 0% $472.00 2.23 "Tamiya 2oz paint - ferrari red" $2.39 5 10% $10.76 OK 10. When the user clicks the Finish Order button, the invoice message should be generated and displayed. The date and time are used Message to create the unique transaction id in the i Date: 1/14/21, 7:58:01 PM EST "transactions.txt" file. For the invoice the format is Number of line items: 2 "DD/MM/YY HH:MM:SS TMZ Item# / ID / Title / Price / Qty / Disc % / Subtotal: 1. 3451 "Oakley Jawbreaker sunglasses" $236.00 2 0% $472.00 2.23 "Tamiya 2oz paint - ferrari red" $2.39 5 10% $10.76 Order subtotal: $482.75 Tax rate: 6% Tax amount: $28.97 Order total: $511.72 Thanks for shopping at Nile Dot Com! OK 11. The transaction file after order shown above was finished. Note the unique transaction ids based on the date and time. /transactions.txt - Eclipse IDE Window Help NileDotCom\2java inventory.tut transactions but X 1140120211958 , 3451, "Qkday . Jankreakec sunglasses", 236.0, 2, 0.0, $472.00, 1/14/21, 7:58:01 PM EST 2140120211958, 23, "Taniya 20z paint - fencari red", 2.39, 5, 0.1, $10.76, 1/14/21, 7:58:01 PM EST 3. 12. If the user enters an item number for an item that is not in stock, the following message will appear. The user must then enter a new item number for an in-stock item to continue processing the current transaction. Nile Dot Com - Spring 2021 Number of items in this order: Enter ID for Item #1: 2342 Enter quantity for Item #1: 11 Item #2 info: Order subtotal for 0 item(s): Process Item #1 Confirm Item #1 View Order Finish Order New Order Exit Message Sorry... that item is out of stock, please try another item OK 13. The transaction file after several orders have been completed. Note the unique transaction ids based on the date and time for every separate transaction. This file shows seven separate transactions. inventory and X transactions but X c. Uses Markleclipse-workspace CNT 4714 - Project - Spring 202 transactionsbot - Sublime Tent (UNREGISTERED) - OX File Edit Selection Find View Goto Tools Project Preferences Help NieDotCom12jara X Blog - 2014-2efine x eclipseini 318-2020-06)ecipse X 1 140128211958, 3451 , "Oakley Jawbreaker sunglasses", 236.0, 2, 0.6, $472.00, 1/14/21, 7:58:01 PM EST 2_140128211958, 23, "Tamiya 20z paint - ferrari red", 2.39, 5, 0.1, $10.76, 1/14/21 , 7:58:01 PM EST 3 240120212006 , 97634 , "Campagnolo 12 spd crankset - 53/39 175mm", 750.0, 1, 6.0, $75.00, 1/14/21, 8:06:46 PM EST 4 140120212008, 67913, "Gios Torino t-shirt size XXL", 25.0, 1, 0.0, $25.80, 1/14/21, 8:08:15 PM EST 5 140120212008, 29741 , "Plush tedy bear 8 inch", 24.0, 2, 6.0, $48.00, 1/14/21, 8:88:15 PM EST 6 140120212008, 339921, "Yamaha KT 180 kart engine", 950.0, 1, 6.0, $950.00, 1/14/21, 8:08:15 PM EST 7 140120212008, 14989, "1/4in - 28tpi S5 nuts", 1.0, 30, 0.2, $24.00, 1/14/21, 8:48:15 PM EST 8 140120212009, 8543, "Ritchey 1 inch threaded headset - silver", 45.0, 3, 2.0, $135.00, 1/14/21, 8:09:48 PM EST 9 140120212009, 2234983, "Wilson NCAA official softball - 1 doz", 55.0, 2, 0.6, $110.00, 1/14/21, 8:09:48 PM EST 10_140120212010, 47831, "8x18 picture frame", 4.95, 18, 0.15, $42.07, 1/14/21, 8:18:47 PM EST 11_140120212010, 268, "Sidi Wire 2 carbon shoes", 499.99, 1, 6.0, $199.99, 1/14/21 , 8:10:47 PM EST 12_140120212018, 245667, "Colnago jersey - size 6", 120.0, 1, 0.0, $120.00, 1/14/21, 8:18:47 PM EST 13_140120212011, 115693, "Colnago (64 - Mapei frame" , 6580.0, 1, 0.0, $6,500.00, 1/14/21, 8:11:38 PM EST 14 140120212012, 582913, "Look Keo 2 Max pedals, 135.0, 10, 0.15, $1,147.50, 1/14/21, 8:12:32 PM EST 15_140120212012, 228865X, "3M Super 33+ electrical tape box 18", 32.5, 1, 6.0, $32.50, 1/14/21, 8:12:32 PM EST 16Step 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