Implementation of information gathering component

Assignment Help Database Management System
Reference no: EM13331345

Against the Requirement Specification, you have made the following design to guide your implementation of the prototype. In respect wtih the two phases specified by KitchenwareCity, your program also consists of two components; Information Gathering Component and Information Presenting Component.

The first thing in the program will be two arrays, one for the list of products (namely PRODUCT_LIST in this document) and the other for the corresponding prices (namely PRICE_LIST). Thus, a product item and its price will have exactly the same index in the respecting arrays. (Hint: there is no need for an array to store the Product Codes. They can be just the index in PRODUCT_LIST .)

Task 1 - Information Gathering Component (Functional Requirement 2, 3, 4)

You first need to create two arrays; one (namely orderedProductCodeArr) to store the Product Code of ordered items; the other to store the quantity of ordered item (namely quantityArr). Just like PRODUCT_LIST and PRICE_LIST, an ordered item's Product Code and quantity will be stored at exactly the same index in the respecting arrays. A diagram defining the relationships between PRODUCT_LIST, PRICE_LIST, orderedProductCodeArr, and quantityArr has been drawn in Figure 1.

620_table.png



Figure 1: Relationship Diagram for Arrays

Subtask 1.1 - Pseudocode for Information Gathering Component 

Information Gathering Component is very important to a shopping cart system. You really want to develop a good algorithm for it. As a professional practice, you decided to first make a working plan in pseudocode before putting hands on coding implementation for the Information Gathering component. After the consultation with an experienced software engineer, you have obtained an Activity Diagram (Figure 2). Now lets decipher the flowchart and input the pseudocode as multi-line comments into the program to guide implementation.

Figure 2: Activity Diagram for Information Gathering Component

1265_table1.png

Subtask 1.2 - Implementation of Information Gathering Component
Based on the pseudocode developed in Subtask 1.1, you are to implement the Information Gathering Component in this task.

Subtask 1.3 - Duplicate Order Detection [Challenging task for only extensive study, no extra mark gained. You can skip the task if you like]
KitchenwareCity will appreciate it if an extra feature can be delivered to detect duplicate orders. If an ordered item has already been in the cart, the system should detect the case, and then ask for user confirmation for updating the quantity or not. If the user confirms 'Yes', the stored quantity will then be replaced by the newly entered value; otherwise, the program terminates the current product-adding process and loop back to ask user confirmation for adding a new item or not. Note that the user is not allowed to completely remove an ordered item from the shopping cart.

Reference no: EM13331345

Questions Cloud

Finding the most expensive product item in the shopping cart : Your program needs to be able to find the cheapest product item in the shopping cart. For it you may adopt the same strategy described in Subtask 2.2.
Discuss the relationship between inflation and interest rate : Discuss the relationship between inflation and interest rate. Do an international relationship exist, yes no HOW?
Explain what is the minimum uncertainty : If the x-component of the velocity of an electron can be measured only to a precision of , what is the minimum uncertainty of the position of the electron in the x-direction. ( )
Minimize the current years tax liability : Minimize the current years tax liability. That is, they would like to defer income when possible and take the largest deductions possible, a practice they have followed in the past.
Implementation of information gathering component : Based on the pseudocode developed in Subtask 1.1, you are to implement the Information Gathering Component in this task.
At what level of employment would diminishing returns set : At what level of employment would diminishing returns set in for the variable input?
Ecommerce business from any industry or e-business type. : Case study of an eCommerce business in which you identify a gap, and then propose an innovation to potentially improve the eBusiness.This innovation should be simple but able to make an important contribution to the customer andto the business. You c..
Give two examples of policies from recent history that can : Give two examples of policies from recent history that can be considered as keynesian intervention to economy by us government. Briefly explain how the changed role that keynesian theory ascribed to government has affecte the overall performance of t..
Find the refractive power of her glasses : A person whose near-point distance is 52cm wears a pair of glasses that are 2.2cm from her eyes. Find the refractive power of her glasses

Reviews

Write a Review

Database Management System Questions & Answers

  What is the role of the project manager

Discuss why many information technology professionals may overlook project cost managment and how this might affect completing projects within budget.

  Key functions of organization-map to strategic information

From information system point of view, we should take the key functions of organization and map them to strategic information. Do your companies follow this process or are steps skipped?

  Criteria selecting a life-cycle model for the project

What criteria would you use in selecting a life-cycle model for the project?

  Analyse and comprehend a provided er diagram

Analyse and comprehend a provided ER diagram and Database Schema and to implement a database based on the provided ER diagram and Database Schema

  What is the role of a dbms

What is the role of a DBMS, and what are it advantages? What are its disadvantages?

  Find the names of employees with the highest salary

Find all department(s) with at least two employees of different names and find the department(s) with the most people and find the names of employee(s) with the highest salary.

  Determine the cartesian product of sets

Determine the Cartesian product (A X B) of the given pair of sets. A => Set of first letter of names of countries = A = { R, S, T } B => Set of numbers denoting Postal codes = B = { 0001, 1001}.

  Developing a database

You have been asked to develop a database utilizing only the written problem description given by the client. In reviewing the description.

  Database to keeps track of students in university

University XYZ needs a database that keeps track of students, what classes they taken and the grades for each of the classes.

  Justify a question on database management

When a student has not chosen a major at a university, the university often enters a value of "Undecided" for the major field. Is "Undecided" a way to represent the null value? Should it be used as a default value? Justify your answer carefully.

  Prepare an er diagram for the database

Prepare an ER diagram for the database described below(using crows foot notation). Be sure to identify all required entities, attributes, and relationships (including cardinalities). State any assumptions you make, and indicate a primary key for e..

  Define database systems and data warehouses

Describe how that firms likely use or should use Management Information Systems, Information Systems and Information Technology as it relates to the various topics covered in the class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd