Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Java Expert


Home >> Java

You are required to design and implement online food delivery system by using Java RMI technology. This includes 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 must have the following characteristics or features:

1) A new user must be able to register a new account to the online food delivery system. The user must 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.

2) After the user has registered to the online food delivery system, the user should be permitted to log in with username and password he/she registered earlier.

3) 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 as well be able to inquire current balance of his/her account from online food delivery system.

4) The user should be able to request a list of available food menu from online food delivery system. The system should return a list of available food menu to the user as following:

a) Order: Pizza
Quantity: 4
Price: RM12
Total: RM48 2.

b) Order: Satay
Quantity: 2
Price: RM10
Total: RM20

(You may make your own illustrations of the menu list above. To store the food menu detail, you might use Hash Table or any other Java collection or external database as you preferred).

5) Based on a list food menu given, the user must be able to purchase food by choosing from the list above. Upon confirmation, the user cash balance from his/her account must be deducted from the food price. It must not be possible to purchase the food if the cash is not enough from the user account. If the server crashes during purchasing transaction, what would happen? How would your RMI program handle this problem?

6) Finally, given two users in the system ex: usernames A and B, User A should be able to transfer cash voucher from his/her account to other user's B account.

7) 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

8) 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 solve the issues? Implement your program to solve the potential issues. Point out exactly in the report of the code segment that you have written to solve the issues and please provide detailed explanations.

Java, Programming

  • Category:- Java
  • Reference No.:- M91737

Have any Question? 


Related Questions in Java

This assignment is based on the principles of clock

This assignment is based on the principles of clock consistency and associated drifts in a distributed system. You have to create a simulation, running on a single machine, of a simple distributed system involving four p ...

Java- object-oriented and concurrent programmingheres a

Java- Object-Oriented and Concurrent Programming Here's a very quick overview of the projects: 1. Read a data file, create the internal data structure, create a GUI to display the structure, and let the user search the s ...

Pogramming assignmentmickeymouse- x int- y int- size

Programming Assignment MickeyMouse - x : int - y : int - size : int -color: Color + MickeyMouse(): + setLocation (x: int, y: int): void + setSize (size: int): void + setColor(color: Color):void + draw(canvas: Graphics2D) ...

Write two java program by netbeans1 create a program that

Write two java program by Netbeans. 1. Create a program that ask for a radius of a circle and has the ability to return both the Area and Circumference - so methods call getArea() and getCircumferance() 2. Create a progr ...

Part 1 text readingchapter 3 chapter 4 part 2 textbook

Part 1. Text reading Chapter 3, Chapter 4 Part 2 . Textbook questions Chapter 3. Describe why an application developer might choose to run over TCP rather than UDP. Suppose host A is sending host B a large file over a TC ...

Below is the beginning of a java classpublic class

Below is the beginning of a Java class. public class Implement { private String name; private boolean hasMovingParts; private String constructedFrom; public Implement() { } a) Complete this class so that: i. The instance ...

As we have discussed in class section 41 of our text

As we have discussed in class, section 4.1 of our text develops a List ADT and then offers two different implementations of it in the classes AList and LList. The ADT is defined in a Java interface file List.java, and bo ...

Student class and driverthis student class will be the data

"Student Class and Driver" This Student Class will be the data that will be used for each of the projects assigned and graded this semester. Your Student Class will consist of: Student Attributes: First Name Last Name ID ...

Topic java part a airline seatingmillions of commercial

Topic: Java Part A: Airline seating Millions of commercial airline flights cross the world's cities every year, and each one of these flights must solve what seems like a simple problem: how do you arrange where each pas ...

The class below has some errors for each error do the

The class below has some errors. For each error do the following: a) Write the erring section of code and explain what the error is. b) Fix the error (i.e. re-write the code correctly). public class ClassWithErrors { pub ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate