A coffee shop introduces a new online ordering system that allows customers to place theirorders through an android app. Customers can create an account, select their drink, customizeit to their preferences, and pay for their order through the app.Following are the application features belonging to the user typeAdmin• Can add, edit, and delete drinks• See customer feedback• Reply to customers• View purchase historyCustomer• Createan account• Selectadrink• Customize the drink• Payforthedrink• Add/ edit feedbacka) Construct 2 entity data classes that are related to the above scenario.they appear on the screen top to bottom as shown in examplel ?(10Marks)b) Design all the activities for the mentioned app using the listed views below. Note thatyou can write down the activity name and list the views. List them according to how(10ViewsTextviewEditTextButtonRadioGroupRadioButtonToggleButtonCheckBoxRatingBarSpinnerScrollviewRecyclerviewLayout (This can be used to determine anylayout)Marks)
Question
A coffee shop introduces a new online ordering system that allows customers to place theirorders through an android app. Customers can create an account, select their drink, customizeit to their preferences, and pay for their order through the app.Following are the application features belonging to the user typeAdmin• Can add, edit, and delete drinks• See customer feedback• Reply to customers• View purchase historyCustomer• Createan account• Selectadrink• Customize the drink• Payforthedrink• Add/ edit feedbacka) Construct 2 entity data classes that are related to the above scenario.they appear on the screen top to bottom as shown in examplel ?(10Marks)b) Design all the activities for the mentioned app using the listed views below. Note thatyou can write down the activity name and list the views. List them according to how(10ViewsTextviewEditTextButtonRadioGroupRadioButtonToggleButtonCheckBoxRatingBarSpinnerScrollviewRecyclerviewLayout (This can be used to determine anylayout)Marks)
Solution
Sure, here is the response:
a) Entity Data Classes:
-
Admin:
- drinkID: Integer
- drinkName: String
- drinkDescription: String
- customerFeedback: List<Feedback>
- purchaseHistory: List<Purchase>
-
Customer:
- accountID: Integer
- accountName: String
- selectedDrink: Drink
- customizedDrink: Drink
- paymentDetails: Payment
- feedback: Feedback
b) Activities and Views:
-
LoginActivity:
- EditText (for username and password)
- Button (for login)
-
RegisterActivity:
- EditText (for username, password, email)
- Button (for register)
-
DrinkSelectionActivity:
- RecyclerView (for displaying list of drinks)
- Button (for selecting a drink)
-
DrinkCustomizationActivity:
- RadioGroup and RadioButton (for selecting customization options)
- Button (for confirming customization)
-
PaymentActivity:
- EditText (for entering payment details)
- Button (for confirming payment)
-
FeedbackActivity:
- RatingBar (for rating)
- EditText (for writing feedback)
- Button (for submitting feedback)
-
AdminActivity:
- ScrollView (for scrolling through customer feedback and purchase history)
- Button (for replying to feedback, adding, editing, and deleting drinks)
Please note that the layout for each activity can be determined based on the specific requirements and design preferences.
Similar Questions
Suppose you are building an online shopping platform “One Click Shopping”. On this platform, you can buy products from different available categories. To place an order, first, you have to register as a user and log in to complete the order. To place an order, select the product from the list and add it to the shopping cart. You can make payment through an online credit card or cash on delivery. After making payment your order will be completed. As a student of OOP (Object oriented programming) course you have to perform the following tasks using the above scenario. 1. Extract the Objects, their attributes (Characteristics), and behaviors (Operations). 2. Identify the generalization relationship and mention the parent and child classes
you are tasked with developing a canteen management system for a university campus. The canteen offers three main categories of items: snacks, beverages, and meals. Each category has specific attributes. Using classes, objects, function overloading, constructors, and access specifiers, create a system that allows the user to add and display details of items available in the canteen, including their quantity.Instructions:Implement three classes: Snack, Beverage, and Meal.Each class should have private attributes for storing item details, including name, price, quantity, expiration date, and additional attributes specific to each category.Overload constructors for each class to initialize objects with different sets of parameters.Create functions to add and display details of items in the canteen.Sample InputEnter Snack Details:Name: CookiesPrice: 1.5Quantity: 100Expiration Date: 2024-05-31Enter Beverage Details:Name: LemonadePrice: 1.25Quantity: 75Expiration Date: 2024-06-15Volume: 16 ozType: Soft DrinkEnter Meal Details:Name: SpaghettiPrice: 10.75Quantity: 50Expiration Date: 2024-05-20Ingredients: Pasta, Tomato Sauce, MeatballsCooking Time: 45 minutesType: DinnerSample OutputCanteen Items Details:Snack Details:Name: CookiesPrice: $1.5Quantity available: 100Expiration Date: 2024-05-31Beverage Details:Name: LemonadePrice: $1.25Quantity available: 75Expiration Date: 2024-06-15Volume: 16 ozType: Soft DrinkMeal Details:Name: SpaghettiPrice: $10.75Quantity available: 50Expiration Date: 2024-05-20Ingredients: Pasta, Tomato Sauce, MeatballsCooking Time: 45 minutesType: Dinner
A company provides catering services for clients who need special-occasion, celebratory dinners. For each dinner, a number of dishes are to be offered. The dinner will be held at a venue. The company will provide staff to serve meals at the venue. •The company needs a database to store data related to this business activity a. Identify and list the entities b. Identify pairs of entities where a direct relationship exist c.-For each pair of relationship draw the entity relationship diagram justifying the choice of cardinalities
Customer place many orders" in this sentence "place" is An AttributeAn EntityA RelationshipNone of the above
Esmeralda runs a local bike shop.She knows a lot of her customers use smartphones with GPS, so she invested in a mobile app that can utilise this technology.She has a couple of ideas how to use the app to engage her customers.Can you remove the ideas that do not need GPS?Select 3 Correct ResponsesSend sales alerts when customers are near the shopNotify people of promotional events like a free tune-upDirect customers to Esmeralda’s shopSend personalised coupons to repeat customersLet customers schedule appointments for repairs
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.