Question: Guaranteed upvote if fully completed and everything is done correctly, thank you. Create a Visual Paradigm project containing the complete class diagram for an application.
Guaranteed upvote if fully completed and everything is done correctly, thank you.
Create a Visual Paradigm project containing the complete class diagram for an application. Make sure to show all the class relationships, fields and methods in the diagram.
Bill
Fields:
double ItemsPrice
double HST
double Tip
double TotalPrice
Constructor:
BillList selectedDishes
Methods:
None all properties are readonly
Dish
Fields:
string Name
double Price
string Description
string Image
Constructor:
Dishstring name, double price, string description, string image
Methods:
None fields are directly set by the constructor
OrderManager
Fields:
static OrderManager instance
List selectedDishes
Constructor:
private OrderManager
Methods:
public static OrderManager Instance
public void AddDish dish
public void RemoveDish dish
public List GetSelectedDishes
OrderPage
Fields:
ListView DishesListView
Constructor:
public OrderPage
Methods:
private void LoadDishes
private async void OnDishSelectedobject sender ItemTappedEventArgs e
private async void OnViewOrderClickedobject sender EventArgs e
SummaryPage
Fields:
Bill Bill
Constructor:
public SummaryPage
Methods:
None binding context is set in the constructor
ViewOrderPage
Fields:
ListView OrderListView
Constructor:
public ViewOrderPage
Methods:
private void OnRemoveDishobject sender ItemTappedEventArgs e
private async void OnAddMoreItemsClickedobject sender EventArgs e
private async void OnCheckOutClickedobject sender EventArgs e
App
Fields:
None
Constructor:
public App
Methods:
None initializes the application and sets the MainPage
AppShell
Fields:
None
Constructor:
public AppShell
Methods:
None sets up the application shell
MainPage
Fields:
None
Constructor:
public MainPage
Methods:
private async void OnStartOrderClickedobject sender EventArgs e
Relationships
OrderPage uses OrderManager to add dishes to the order.
ViewOrderPage uses OrderManager to remove dishes from the order and shows the list of selected dishes.
SummaryPage creates a Bill object using the selected dishes from OrderManager and displays the summary.
MainPage navigates to OrderPage when the "Start your order" button is clicked.
AppShell sets up the navigation for the application.
App initializes the application and sets AppShell as the main page.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
