For this project, we will be designing two programs – a client…
Question For this project, we will be designing two programs – a client… For this project, we will be designing two programs – a client program for a user to enter a (very) basic fast-food order and a server program that can compute an order number and total with tax and write a transaction log. Both programs will run simultaneously on your system and communicate with each other using networking code.Functional SpecificationsFor the client program, you will need to create a program that meets the following criteria:? Present a JavaFX or Java Swing interface that will consist of a form containing at leastthree possible things to order (burger, shake, order of fries). Each of these items shouldallow you to specify a quantity.? Provide a “Send Order” button that will collect all items ordered and send this information to your fast-food server.? Accept a response from the fast-food server that will contain a unique order number and a total of all items ordered plus 6% sales tax.? A text area that will present the order information provided by the server.For the server program, you will need to create a program that meets the following criteria:? Be multithreaded in that each incoming order will be processed on a separate thread? Code to compute a unique order number. The order number will be stored in a static variable and shared amongst all threads. Initialize the order number to start at 1000.? Code to compute the order total which would include all line items (burgers, shakes and fries) as well as the sales tax of 6%.? Write the order information to a log file on disk. This is our transaction log and evidence of an order. A standardtext file will suffice and must include an order number that the server generates, the client ip address, and the computed total.? Code to respond back to the fast-food client with the order number and total information.The price of items will be as follows:burger – $5.00fries – $2.00shake – $3.50 Image transcription textFor this project, we will be designingtwo programs – a client program for auser to enter a (very) basi… Show more… Show more Image transcription textThe price of items will be as follows:burger – $5.00 fries – $2.00 shake -$3.50 Example Scenario … Show more… Show more Computer Science Engineering & Technology Java Programming Share QuestionEmailCopy link Comments (0)


