Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

We have a project from Software Engineering course where we act as a developer group that make an application for the customer group according to

We have a project from Software Engineering course where we act as a developer group that make an application for the customer group according to their needs. We wrote a SRS(Software Requirements Specification) document. Now, we are writing a SDD(software design document). For context, we are doing an online grocery store. I am doing the Component Design part of the design document. I will attach the part from SRS that corresponds to Component Design part. !!PLEASE HELP ME WRITE THE basic CODES TO COMPONENT DESIGN ACCORDING TO THESE FUNCTIONS!! You can use whatever language is convenient. Preferably JAVA. Here is the "Functional Requirements" part in our SRS: System Features
System Feature: Register and Login
4.1.1 Description and Priority
Allows the system to generate a new user account. Making any kind of purchase requires the user to have an account and be logged in. The customer information will be recorded in the database with this feature.
4.1.2 Stimulus/Response Sequences
The user needs to click a link or button to start the registering before they can start the program. The user is requested by the system to provide their email address, password, first name, and last name. The user receives the ownership of an the account after the system verifies the users information.
4.1.3 Functional Requirements
REQ-1: It must be possible to access the login and register buttons.
REQ-2: Each account needs its own database table set up.
REQ-3: When login information is invalid, an error message must show up.
System Feature: Add to Cart
4.2.1 Description and Priority
Users can browse the products on the homepage and add any item to their shopping cart with the use of this feature. It is up to the user to choose how much they want to add to their cart.
4.2.2 Stimulus/Response Sequences
A notice informing the user of the insufficient amount of stock must be displayed; if not, the item will be incorrectly added to their basket.
4.2.3 Functional Requirements
REQ-1: An add to cart button REQ-2: A show my cart button.
REQ-3: For every product, there needs to be a table in the database with all of the product details.
REQ-4: An out of stock message that appears when the product runs out of stock.
REQ-5: A table for the products which are added to cart.
System Feature: Confirm Order
4.3.1 Description and Priority
Customers can use their bank or credit card details to validate their order when making a purchase. Due to the fact that it enables the users informations security and payment validation, it is a high priority feature.
4.3.2 Stimulus/Response Sequences
Customers will be able to click a button or a link to start the confirmation process of their order. When the order is accepted by the customer, the system saves the confirmation and creates a bill with all the required information.
4.3.3 Functional Requirements
R-1: A button or link to confirm the users order.
REQ-2: Request for user to double-check and validate their order.
REQ-3: Keep a record of the order verification and produce a receipt with the required information.
REQ-4: In case there are any problems during the confirmation process, make sure to give clearly stated error messages and directions.
System Feature: Product Reviews
Description and Priority
That feature allows customers to read and write reviews on products in the online store.
Stimulus/Response Sequences
Shoppers can read other customers' reviews in a special section on the grocery website's product page. There is also a "Write a Comment" option where users can participate. Clicking this opens a login or account creation screen. This step ensures the reliability of reviews by ensuring that only registered users can leave feedback. When users log in or create an account, they see a form where they can give a star rating (from 1 to 5) and write reviews up to 5 inches tall.
Functional Requirements
REQ-1: The system should allow users to view reviews from users who have previously purchased.
REQ-2: Before publishing a review, the system must require users to check in or create an account.
REQ-3: Users should be presented with values between 1-5 to evaluate the product.
System Feature: Show Discount
Functional Requirements
REQ-1: System must get discount info from the database for each product it lists.
REQ-2: Discounts and deals should be displayed clear REQ-3: Users should be able to sort products by those that have active discounts or special promotions. Here is the Component Design requests: I will attach the image Component Design
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data And Information Quality Dimensions, Principles And Techniques

Authors: Carlo Batini, Monica Scannapieco

1st Edition

3319241060, 9783319241067

More Books

Students also viewed these Databases questions

Question

Determine miller indices of plane X z 2/3 90% a/3

Answered: 1 week ago

Question

1 What is meant by systematic training?

Answered: 1 week ago