Ask Question, Ask an Expert


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

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

Assignmentupload your completed assignment to the

Assignment Upload your completed assignment to the Assignment 2 link on the course home page for marking and tutor feedback. Be sure to complete the final step-click on the Send for Marking button to notify your tutor. P ...

Animal characteristicsin todays fast-paced world it is

Animal characteristics In today's fast-paced world, it is important for programmers to think about potential future changes that impact their programs. One way that software developers can address this concern is by desi ...

Programming assignment - summer semester 2015-purpose-to

Programming Assignment - Summer Semester 2015- Purpose- To provide students with the opportunity to apply the knowledge acquired and skills developed. These include understanding of primitive data types and the concept o ...

Programmers often develop different types of accounts to

Programmers often develop different types of accounts to provide access to a program for a variety of users. The structure of each account is formatted based on the needs of the user and how the program will be used. One ...

Java question1write an application that prompts a user for

JAVA Question 1. Write an application that prompts a user for a month, day, and year. Display a message that specifies whether the entered date is not this year, in an earlier month this year, in a later month this year, ...

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

Java programmingnow that your survey class has been

Java programming Now that your Survey class has been implemented, it is time to implement the SurveyConductor application class. This class uses the Survey class to conduct a survey. First, create pseudocode to develop t ...

Twitter is a popular social media platform for users to

Twitter is a popular social media platform for users to send out a short message (a "tweet") to other users who are registered as his/her followers. Figure 1 shows a graph. (The topic on graphs will be covered after your ...

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

  • 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