Individually, you are required to design & implement online food delivery system using Java RMI technology. This involves writing both the server and the client program(s). Client programs can use either a command line interface or a graphical user interface. The program should have the following features:

  • A new user should be able to register a new account to the online food delivery system. The user should be able to register by using his/her username and password. If the username exists in the system, the user will be notified to enter a different username. (You may use Array, List, Vector, HashTable or any other Java collection as you preferred BUT you are NOT ALLOWED to use any SQL database system).
  • After the user has registered to the online food delivery system, the user should be allowed to log in with username and password he/she registered earlier.
  • When log in, the user should be able deposit money (add money to his/her account), and the online food delivery system should update the cash balance of the user. At any point of time, the user should also be able to inquire current balance of his/her account from online food delivery system.
  • The user should be able to request a list of available food menu from the online food delivery system. The system should return a list of available food menu to the user as the following:
Order: Pizza
Quantity: 4
Module: DCOMS Asia Pacific University College of Technology and Innovation Page 2 of 4
Price: RM12
Total: RM48
Order: Satay
Quantity: 2
Price: RM10
Total: RM20
  • (You may create your own examples of the menu list above. To store the food menu detail, you may use HashTable or any other Java collection or external database as you preferred).
  • Based on a list food menu given, the user should be able to purchase food by selecting from the list above. Upon confirmation, the user cash balance from his/her account should be deducted from the food price. It should not be possible to purchase the food if the cash is not sufficient from the user account. If the server crashes during purchasing transaction, what would happen? How would your RMI program handle this problem?
  • Finally, given two users in the system e.g., usernames A and B, User A should be able to transfer cash voucher from his/her account to other user's B account.
  • Implement secure communication between session with the user and the food online system (i) when user purchases food and (ii) when the user performs cash transfer (Hint: use either SSL, SSH or any other security protocols for security needs).
  • What happen if multiple users use the online food system at the same time? What if/she purchases the same food item from the online system at the same time? What issues you might face? How can we resolve the issues? Implement your program to resolve the potential issues. Indicate exactly in the report of the code segment that you have written to resolve the issues and please provide detailed explanations.

I have intentionally specified few design details. In this assignment, you are expected to make design choices yourself. Your focus should be on functionalities. Unless you have implemented all the required features, do not spend so much time on GUI interfaces and any other fancy features. I will focus on your use of RMI in grading this portion of the assignment.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.