Knowee
Questions
Features
Study Tools

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

Question

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
...expand
🧐 Not the exact question you are looking for?Go ask a question

Solution

  1. Extracting Objects, their attributes (Characteristics), and behaviors (Operations):

Objects: User, Product, Shopping Cart, Payment, Order

  • User

    • Attributes: UserID, UserName, Password, Address
    • Behaviors: Register, Login, SelectProduct, MakePayment
  • Product

    • Attributes: ProductID, ProductName, ProductCategory, ProductPrice
    • Behaviors: AddToCart
  • Shopping Cart

    • Attributes: CartID, UserID, ProductList, TotalAmount
    • Behaviors: AddProduct, RemoveProduct, CalculateTotal
  • Payment

    • Attributes: PaymentID, UserID, PaymentMethod, PaymentAmount
    • Behaviors: MakePayment, ConfirmPayment
  • Order

    • Attributes: OrderID, UserID, ProductList, TotalAmount, PaymentStatus
    • Behaviors: PlaceOrder, ConfirmOrder
  1. Identifying the generalization relationship and mentioning the parent and child classes:

In this scenario, we can consider the 'User' as the parent class because it has a general relationship with other classes. The 'User' can perform actions like selecting a product, adding it to the cart, making a payment, and placing an order. So, the child classes can be 'Product', 'Shopping Cart', 'Payment', and 'Order'. These child classes inherit some properties from the 'User' class and also have their own unique properties.

This problem has been solved

Similar Questions

Online Shopping System using Inheritance and Static Members Consider an online shopping system where members, including buyers and sellers, participate in buying and selling items. The system is designed using inheritance with a base class Member, and subclasses Buyer and Seller. The Member class maintains a unique member number, name, and amount in hand for each member. Both Buyer and Seller classes inherit from the Member class. The Seller class additionally maintains an item ID, item name, and item price. The system prompts the user to input details for a specified number of sellers and buyers. After inputting the details, the system allows a buyer to purchase an item from a seller by entering the item ID. The system then transfers the item price from the buyer's amount in hand to the seller's amount in hand. Furthermore, a static member totalMembers is implemented in the Member class to count the total number of members in the system. A static method displayTotalMembers() is provided to display the total number of members at the end of the program execution. Your task is to understand and analyze the provided Java code, identify the inheritance hierarchy and static members used, and explain how the code functions to maintain and operate the online shopping system. Highlight the interactions between buyers and sellers, the data stored for each member, and the utilization of static members to track the total number of members in the system.

A …………… on an online retailer's site is a piece of software that facilitates the purchase of a product or serviceOnline BusinessShopping CardPayment GatewayShopping Cart

in C++ code array-based or vector-based:Write a program that will allow users the ability to order items from a supermarket online. The Item will consist of three attributes.● Item Name ● It’s a category ● Item priceFor the Item creation, there must be an item class where objects are part of the node which will form the non-linear trees. In other terms, the program is made up of three tree data structures which are 1 binary search tree, 2 heaps and 3 avl and they are all node-based. Below is an example of what the item class must include, however, more functionality can be added. class item { String itemname; string category; Int price; public: item(string, string, int); bool operator<(const item&); void print(); };The program will implement the three tree data structures as following:A Menu that allow user to choose which non linear structure: i. AVL Treesthe tree should have its mini menu: The mini-menu has all the operations that are applied to the tree structures:I. Add item data, II. Remove item data, III. Display the item data normally IV. Display all the items sorted by their name ascending V. Display all the items sorted by their name descending, VI. Display all the items sorted by their prices ascending VII. Display all the items sorted by their prices descending.Note: For Heap, the sorting is done using, Min Heap, Max Heap and Heap sort 3) Read the items from a file or add items manually To do so you should: Implement a global readItems(istream&,tree&) function, which takes the file name and the tree and reads the items in the file into the tree. Consider having the following file is a user reading list to use it for filling your trees. here's a sample of input: 12 chocolate milk drink 10 bananas fruit 75 pepsi drink 20 cheddar cheese dairy 49 Tuna meat 90 fanta orange drink 20 yought dairy 13 mint gum candy 2 water drink 9 apples fruit 66 beef meat 284 cheese cake desset 68

In the revenue and receipts cycle, a new customer wishes to purchase inventory on credit, at your shop. Select the first step that you will insist should be followed by your staff. a.Request a valid purchase order from the customer before processing the order.b.Create a correct purchase order, signed by the customer.c.Request that a credit application form be completed by the customer.d.Set up an accounts receivable account for the customer in the accounts receivable ledger.

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)

1/1

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.