0% found this document useful (0 votes)
6 views

FinalDocumentJava

The document outlines the functionalities of a vendor and delivery runner dashboard, detailing how vendors can manage menu items, orders, revenue, and customer feedback, while delivery runners can accept tasks, view earnings, and receive customer reviews. It also explains the use of OOP concepts such as encapsulation, polymorphism, inheritance, and abstraction to enhance the system's robustness and flexibility. Additionally, it includes information on password requirements and text files used for data management.

Uploaded by

budhah282
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

FinalDocumentJava

The document outlines the functionalities of a vendor and delivery runner dashboard, detailing how vendors can manage menu items, orders, revenue, and customer feedback, while delivery runners can accept tasks, view earnings, and receive customer reviews. It also explains the use of OOP concepts such as encapsulation, polymorphism, inheritance, and abstraction to enhance the system's robustness and flexibility. Additionally, it includes information on password requirements and text files used for data management.

Uploaded by

budhah282
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 20

1.

Vendors (Hemraj Budha)

1.1 Vendors Dashboard

Figure: Vendor Dashboard

After login, this dashboard allows vendors to manage their menu items and orders, view revenue
and orders, read customer feedback, and review notifications before logging out

1.2 Manage Menu

1.2.1 Adding an item

\
Figure: Interface for managing the menu

After clicking the “Manage Menu” button, the “Manage Menu” window displays buttons for
adding, updating, deleting, and viewing items and provides an exit option. The user interface
serves as a basic platform for supervising menu elements in software systems.

Figure: Adding an item name

This basic form allows vendors to add new items. Clicking ‘OK” completes the process after you
submit the item name (“Momos”) within the text box.

Figure: Adding an item’s description

This basic form enables vendors to add descriptions to the items. You need to input the text (“it’s
delicious”) into the description field then press “OK”.

Figure: Adding an item’s price

This form enables vendors to enter their item’s price of “150” while providing “OK” and
‘Cancel”. You can find this form under “Adding an item’s price”.
\

Figure: message for item added successfully.

The system displays the notification “Item added successfully!” through its confirmation dialog
box and includes an “Ok” button for user interaction. The interface prompts users with an “OK”
button to confirm a successful action inside a software program.

Figure: View items

Vendors can view the menu specifications which the menu items.

1.2.2 Updating an Item

Figure: updating by name

The update form functions as an easy interface to modify individual items. You need to type the
name of the update item (“momos”), then select “OK”.
Figure: Updating a new description

Vendors can update an item description by inserting the item’s name you want to update. Vendors
can enter the new description (“more Delicious”) before pressing “OK” on the screen.

Figure: updating the price

The dialog box displays the user input of “120” for updating item pricing information. Vendors
can access software item detail updates through the ‘Ok” and ‘Cancel” buttons.

Figure: View details after updating

The updated information for “Momos – More Delicious ($120.0)” now appears in this section
after editing the menu item.

1.2.3 Delete Item

Figure: Delete by item name

Vendors can enter item names to delete items through this interface. Type “momos” as the item
name into the delete box, then click OK.
Figure: Confirm the deleting process

The message “No items in the menu” in a dialog box confirms that removing items was
successful with an empty menu. The vendor can verify the message through the ‘OK” button.

1.3 Manage Orders

1.3.1 Accept the Order

Figure: Pending the order

The vendor observes pending orders through their Order Management System after a customer
submits their order. Vendors can decide between accepting or declining orders through their
system with customers.
Figure: Accept the order by clicking the accept button

The system displays this notification when the vendor selects the ‘Accept Order” confirmation to
approve order ID 1 from the customer.

Figure: showing the order is accepted

1.3.2 Cancel the order

Figure: Cancel the order by clicking the cancel order button


The system notifies the customer about the cancellation of his order (ID:2). Once a vendor
cancels an order within a system, the application displays a notification to the customer.

Figure: Showing the order is cancelled.

The image presents Sujal’s order detail, which reveals a declined status as indicated by the order
selection dropdown.

Figure: Customer Notifications

After accepting their order, A Customer can view their order status through this notification
window. Each placed order automatically appears in this area, which displays the acceptance and
decline statuses.
1.3.3 Order History

Figure: Order history

Vendors can find their order history details after clicking the “Order History” option from the
main menu.

1.3.4 Revenue Dashboard


Figure: Revenue dashboard

The business earns $500 daily and $15,000 monthly and $180,000 yearly through this revenue
dashboard.
1.3.5 Customer Reviews

Figure: Customer Reviews

Vendors have access to see the customer reviews about their orders received. Customers post
their reviews in this area following order information. The section allows vendors to measure
customer satisfaction and find opportunities to enhance their service.
2. Delivery Runner (Nischal Sharma)

2.1 Delivery Runner Dashboard

Figure: Delivery runner dashboard

Once login is complete, the delivery runner encounters a dashboard that combines options to see
tasks and updates status and review ratings and view earnings information. Delivery runners can
use the “Back to Login Page” button to perform their logout process. The dashboard supplies
essential resources to handle delivery operations.
2.2 Assign tasks to delivery runners

Figure: Assign task to delivery runner automatically

The displays show an automated delivery management interface for fleet management, which
distributes orders to designated delivery team members. Order 2 requires a delivery service,
which has been assigned to Nischal Sharma since he is currently the only available runner.
Orders 1 and 3 do not require delivery because their status indicates they are available for dine-in
or takeaway. The system verifies automatic order assignments while displaying order status
updates.

2.3 Notified customer about lack of delivery man.


Figure: Customer notifications for lack of delivery man.

The system notifies customers with a message such as “Some orders couldn’t be assigned due to
a lack of delivery runners” when customers place an order for delivery, but there are no delivery
runners. Please select takeaway or dine-in. This guarantees a seamless experience despite the
delivery limits by informing the customer of the condition and enabling them to choose
alternative fulfillment option.

2.4 Customer Reviews

Figure: Customer Reviews

The display interface provides delivery runners with feedback from customers regarding their
orders. The system reveals to delivery runners information about what food items (Chaumin and
Momos) customers ordered together with delivery method (Dine-in or Delivery) and total price.
The reviews reveal to delivery runners the positive aspects that customers appreciate about
products and delivery times. The display enables delivery runners to understand which features
customers prioritize along with receiving guidance or providing top-quality service

2.5 Accept the task

Figure: Task Accepted

Delivery Runners can find order information displayed on top before they click “Accept Task” to
officially signify their commitment towards completing the task.

2.6 Earnings Dashboard


Figure: Earnings dashboard

The document displays the earned pay of a Delivery Runner. The report shows Nischal Sharma
as the delivery runner who earned Rs 150. The brief report displays the driver's current earnings.

3. OOP Concepts for Robust and Flexible Solutions

3.1 Encapsulation

Figure: Encapsulation

In the Menu Items class, it ensures that data such as name, description, and price are concealed
by restricting their access through a private keyword. In turn, it gives other classes access
through other methods like getName() and setName(). This helps to defend the data and ensure
that the single responsibility principle for the menu item objects is maintained.
3.2 Polymorphisms

Figure: Polymorphisms

Your code provides an example for the use of polymorphism, or the ability to select the
appropriate user interface class, say CustomerUI or VendorUI. These classes derived from the
same present class and java determines which showUI() to call during execution. This makes
code modular, maintainable, and secure since additional roles can easily be incorporated without
altering primary login procedures.

3.3 Inheritance
Figure: Inheritance

This code uses inheritance to simplify the common setup of JFrame and minimize redundancy.
The BaseReviewFrame acts as the parent class, managint the window’s title, dimensions, and
Nimbus look and feel. The public class ReadReview extends BaseReviewFrame {} allows
ReadReview to inherit the properties of BaseReviewFrame while also incorporating its
components like JTextArea, reviewArea, and JButton. This method improves code
maintainability; any necessary changes to the UI setup can be made in BaseReviewFrame and
will automatically reflect in all business.

3.4 Abstraction

Figure: Abstraction

The AbstractTransaction class employs abstraction methods to create standardized transaction


operations that omit detailed implementations. The abstract designation of the initializeUI ()
method requires subclass implementations for UI components that both maintain standardization
and permit individual customization. The shared loadTransactions() method allows reading
transaction data to minimize duplicate code across the system. The approach defines core
elements of development through basic foundations and enables reusable code allocation, which
lets transaction types use shared logic without losing distinct features.

4. Additional Features
4.1 Password Requirements

Figure: Password Requirements

This image displays a password validation error message. It indicates that the user's entered
password does not meet the required criteria: it must be at least 8 characters long and include at
least one number. The message is presented in a modal dialog box, titled "Error," with an "OK"
button to acknowledge and dismiss the message, prompting the user to re-enter a password that
adheres to the specified rules.
4.Appendix

4.1 Screenshot of text files used in program

4.1.1 Menu.txt

Figure: Text file of Menu

This text file displays food item information using one line for each entry which shows its
description and price. The new item added to the database receives its place as a new entry
within this single text file which serves to retain the item data.

4.1.2 Review.txt

Figure: Text file of Review

The figure displays the Review.txt document that contains order information together with
customer reviews. The file contains one line for each customer order, which includes their name
as well as order status and ordered items alongside total price and review information. The file
functions as a basic database that maintains records of customer feedback together with order
history.

4.1.3 Task.txt
Figure: Text file of task

The image depicts the Task.txt file that tracks delivery operations. New tasks with order
information and assigned delivery runner are added to the file when customers request delivery.
The basic system enables effective tracking and management of delivery operations.

4.1.4 Vendors_notification.txt

Figure: Text file of vendor notification

The Vendors.txt file serves as a record of customer orders according to the image shown. The
system adds new order information to the Vendors.txt file for vendor notification with details of
order items and current status marked as 'Pending'. The file system enables vendors to monitor
and handle their new order requirements.

4.1.5 Customer_notifications.txt file

Figure; Text cile of customer notifications

Customer notifications. Txtfile provides storage space for status notifications that customers get
about their orders whether they are accepted or declined.

You might also like