Update the GUI application you have developed so far by adding a Java application to store the order just made by the customer in a file and present a file confirmation message using files and streams. You may accomplish this by outputting the sub order information to a file. Finally, you will read this file to display the order confirmation information.Output user-entered data to a destination file using the file class.Input data from a source file using the file class.Use FileWriter class and PrintWriter class to output an order confirmation.Order Information Beverage: xxxxSub bread: bbbbbbbSub type: tttttttttttttSub size: ssssssssCustomer Information Name: fffffff lllllllAddress: aaaaaaaaaaCity: cccccState: ssZip: zzzzzPhone: nnn-nnn-nnnnInput File: SubOrder.txtDeliverable:The following are the U5 Individual Project deliverables:Save the final program code you just developed and ran successfully in a ZIP file that includes all of your Java project files and a sample output file.Update the Design Document title page with the new date and project name (U5 IP).Update previously completed sections based on instructor feedback.Update use diagrams, class diagrams, activity diagrams, and sequence diagrams if the actual development of the application changes some of the original representations from Unit 1.Save screenshots of your application, and paste them under the section called “Famous Favorite Sub Ordering Application Screenshots.”Be sure to update your table of contents before submission.Name the document yourname_ITSD424_IP5.doc.Submit the final design document and Java application ZIP file for grading.there is a picture of how this hould look attached and the code as well.
Update the GUI application you have developed so far by adding a Java application to store the order just made by the customer in a file and present a file confirmation message using files and strea
Phase 3 Application Screenshots 17 ITSD424 1803B-01 Object Oriented Application Development II Famous Favorite Subs (Unit 3 IP) Jacqueline Calloway July 24, 2018 Use Case Customer Places order. Main Actor: CustomerDetails: Customer first selects his/her language preference then they select what they are having from the menu selection.Ordering System: System is wireless and must me recharged at closing, the display is ready upon the customers arrival the user activates the menu by selection start.Ordering Process: Customer selects his/her language preference Customer then selects the menu to get started Customer orders a drink from the drink menu Customer then selects what he/ she would like to eat Customer confirms order Placing Wrong Order: Customer mistakenly orders an item when ordering they can press the back key to return to the previous menu. Customer enters wrong item and wants to return back to main menu. Order Placed: Confirmed order is sent to the kitchen where it then is prepared.Summary: User is familiar with how to enter values through mouse and has a general idea why the inputs are being provided and what is expect. package famous.favourite.subs; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; public class FamousFavouriteSubs { JFrame frame;//defining a frame in public class public static void main(String[] args) { FamousFavouriteSubs db = new FamousFavouriteSubs(); //Container myPane = frame.getContentPane(); } public FamousFavouriteSubs(){ frame = new JFrame(“FamousFavouriteSubs”); frame.pack();// to autosize the frame frame.setVisible(true); // what happen when the user clicks the close button frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JButton button = new JButton(“order Now”); button.addActionListener(new MyAction()); frame.add(button); ///Below code makes the frame size half the size of the computer screen Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int height = screenSize.height; int width = screenSize.width; frame.setSize(width/2, height/2); // center the jframe on screen frame.setLocationRelativeTo(null); } public class MyAction implements ActionListener{ public void actionPerformed(ActionEvent e){ // prompt thecustomer to enter their name String name = JOptionPane.showInputDialog(frame, “Enter your name”); // prompt thecustomer to enter their delivery address String adress = JOptionPane.showInputDialog(frame, “Enter your Address”); // prompt thecustomer to enter their favourite beverage String beverage = JOptionPane.showInputDialog(frame, “Enter your favourite beverage”); // prompt thecustomer to enter their favourite sub bread String sub_bread= JOptionPane.showInputDialog(frame, “Enter your favourite sub bread”); // prompt thecustomer to enter their favourite sub type String sub_type = JOptionPane.showInputDialog(frame, “Enter your sub type”); showInputDialog(); JOptionPane.showMessageDialog(frame, “Welcome t”+name+” tto”+ “n****FamousFavouriteSubs****”+ “n Your favourite selection in FamousFavouriteSubs include:t”+ “n SUB BREAD:t”+sub_bread+ “nFavourite Beverage:t”+beverage+ “nSUB TYPE:t”+sub_type+ “nSUB SIZE:t”+showInputDialog()+ “nYour favourites to be delivered to:t”+adress+ “n Thank for visiting us come again”); } public String showInputDialog() // prompt thecustomer to enter their favourite sub size String inputValue = JOptionPane.showInputDialog(“Enter sub size”); if(inputValue == null || inputValue.isEmpty() || inputValue.matches(“[A-Za-z]*”)) { JOptionPane.showMessageDialog(frame,”Enter only integer”); inputValue = showInputDialog();//call the fuction again until the condition is met } return inputValue; } Phase 2 Application Screenshots Input Name: Input Address: Input Drink: Input Bread: Input Style: Input Size: Final Output: Phase 3 Application Screenshots Address input and Name input Here chose Favorite beverage and key in Bread Details Validation Field Sub Size and Sub type Output message Clear the Filled Details
Why Choose Us
- 100% non-plagiarized Papers
- 24/7 /365 Service Available
- Affordable Prices
- Any Paper, Urgency, and Subject
- Will complete your papers in 6 hours
- On-time Delivery
- Money-back and Privacy guarantees
- Unlimited Amendments upon request
- Satisfaction guarantee
How it Works
- Click on the “Place Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
- Fill in your paper’s requirements in the "PAPER DETAILS" section.
- Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
- Click “CREATE ACCOUNT & SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
- From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.