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.
1. Bill
* Fields:
* double ItemsPrice
* double HST
* double Tip
* double TotalPrice
* Constructor:
* Bill(List selectedDishes)
* Methods:
* None (all properties are read-only)
2. Dish
* Fields:
* string Name
* double Price
* string Description
* string Image
* Constructor:
* Dish(string name, double price, string description, string image)
* Methods:
* None (fields are directly set by the constructor)
3. OrderManager
* Fields:
* static OrderManager _instance
* List _selectedDishes
* Constructor:
* private OrderManager()
* Methods:
* public static OrderManager Instance
* public void Add(Dish dish)
* public void Remove(Dish dish)
* public List GetSelectedDishes()
4. OrderPage
* Fields:
* ListView DishesListView
* Constructor:
* public OrderPage()
* Methods:
* private void LoadDishes()
* private async void OnDishSelected(object sender, ItemTappedEventArgs e)
* private async void OnViewOrderClicked(object sender, EventArgs e)
5. SummaryPage
* Fields:
* Bill Bill
* Constructor:
* public SummaryPage()
* Methods:
* None (binding context is set in the constructor)
6. ViewOrderPage
* Fields:
* ListView OrderListView
* Constructor:
* public ViewOrderPage()
* Methods:
* private void OnRemoveDish(object sender, ItemTappedEventArgs e)
* private async void OnAddMoreItemsClicked(object sender, EventArgs e)
* private async void OnCheckOutClicked(object sender, EventArgs e)
7. App
* Fields:
* None
* Constructor:
* public App()
* Methods:
* None (initializes the application and sets the MainPage)
8. AppShell
* Fields:
* None
* Constructor:
* public AppShell()
* Methods:
* None (sets up the application shell)
9. MainPage
* Fields:
* None
* Constructor:
* public MainPage()
* Methods:
* private async void OnStartOrderClicked(object sender, EventArgs e)
Relationships
1. OrderPage - uses OrderManager to add dishes to the order.
2. ViewOrderPage - uses OrderManager to remove dishes from the order and shows the list of selected dishes.
3. SummaryPage - creates a Bill object using the selected dishes from OrderManager and displays the summary.
4. MainPage - navigates to OrderPage when the "Start your order" button is clicked.
5. AppShell - sets up the navigation for the application.
6. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!