0% found this document useful (0 votes)
163 views

QP-ASM-001 Exam Question Paper

This document outlines requirements for developing a website for Nyabiko Stores using ASP.NET and C#. Key requirements include: 1. Creating a database with tables for Users, Categories, Products, and Orders to store login credentials, roles, product/category details, and orders. 2. Developing a website with pages for Home, Login, Sign Up, Products, Categories, ViewItems, and Orders. 3. Restricting access and functionality based on user roles - customers can view/order, sales can manage products/categories. 4. Implementing features like shopping cart, order confirmation, payment selection, and display of product details. 5. Developing classes for common functionality

Uploaded by

Robert Nyabawa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
163 views

QP-ASM-001 Exam Question Paper

This document outlines requirements for developing a website for Nyabiko Stores using ASP.NET and C#. Key requirements include: 1. Creating a database with tables for Users, Categories, Products, and Orders to store login credentials, roles, product/category details, and orders. 2. Developing a website with pages for Home, Login, Sign Up, Products, Categories, ViewItems, and Orders. 3. Restricting access and functionality based on user roles - customers can view/order, sales can manage products/categories. 4. Implementing features like shopping cart, order confirmation, payment selection, and display of product details. 5. Developing classes for common functionality

Uploaded by

Robert Nyabawa
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Faculty Computing

Assessment Name End Paper Code CPN2/I20E


Ex: End/Sup
Programming
Module Name Module Code C8-PN2-11
Using .NET 2

Month January Year 2021

Total Marks 100 Duration 6 weeks

Instructions

1. This is a project that should be done over 6 weeks


2. Please refer to Turnitin for the due date. No late submissions shall be tolerated.
3. You must submit the report via Turnitin and the artifact via Blackboard.
4. Please read Plagiarism Guidelines before you start working on the Assignment.
5. Read the Turnitin Guidelines, before uploading the Assignment in Turnitin.
6. You may be required to present your artifact.
7. The distribution of marks is shown at the end of the question paper, after ‘Required’.
8. You must submit ALL the required files for your project to execute successfully.
9. Write your student ID and batch number as comments at the top of every source code file.
10. You must also include your student ID and batch number as a footer on every page of your report.
QP-ASM-001|Rev 004

11. Use C#, JavaScript, HTML, CSS, pseudo-HTML to accomplish this project.
12. Plagiarism is a serious offence that will be dealt with according to the Academic Honesty
policy of Botho University.
13. No work submitted other than through Turnitin and Blackboard shall be considered.

Page 1 of 5
Scenario Description

Nyabiko Store is a newly launched store that sells various items, including groceries, toys, kitchenware
and electronics. The wholesale has branches in three cities. The store does not have any website at the
moment and relies on social media to post catalogues showing products on promotion. Since customers
cannot make purchases on their social media platforms, they have to visit the shop to purchase items
physically, and sometimes by the time they get to the shop the products on promotion would have been
finished. Moreover, the shop management is unhappy with the overcrowding in their shops as some
customers fail to observe social-distancing, raising fears of COVID-19. The management of Nyabiko Store
has decided to go online to eliminate these problems by allowing customers to buy online.

Suppose the management has approached you to develop a dynamic and responsive website using
ASP.NET and the C# programming language to allow customers to make online purchases. The minimum
requirements for the website are specified as follows:

 Create a database called NyabikoStores containing 4 tables titled Users, Category, Products and
Orders.
o The table Users must store login credentials and roles of users; and should have the
following fields: first name, surname, username, password, email address and role. Roles
can only be salesRep, Stores and Customer. Passwords must be at least 9 characters long,
including at least one digit, lowercase letter, uppercase letter and special character.
o The table Categories should store product categories and has the fields to store category
identity number (must auto incremented and unique for each category), category name and
QP-ASM-001|Rev 004

description. All the other fields are mandatory except description.


o The table Products must contain product details. Each product must have a product
identity which uniquely identifies it and is auto incremented, a product name, description
and category number that has referential integrity to the category table. All the other fields
are mandatory except description.
o The table Orders should have the fields order number (unique), product number (foreign
key), quantity, order date and total amount.
 Create a website for Nyabiko Store with at least the following web pages: Home page, log in, sign
up, products.aspx, category.aspx, viewItems.aspx and orders.aspx. The website must have a
Master Page and separate cascading style sheet file.

Page 2 of 5
 Guest users should be able to view available products and their prices only.
 Customers should be able to sign-up on the website, and their user role must be Customer when
the record is inserted in the database table Users.
● All users must be authenticated. The login is validated against role names using sessions. The web
pages accessed by various user roles are as follows:
o salesRep should be able to access products page .
o A user with role Stores should access categories
o Customer should access viewItems page. The viewItems page should have a link for the
customer to be able to place orders.
● The salesRep and Stores users should be able to add, search, update and delete items from
database from the respective tables while user customer should be able to view items in the tables
products and categories. After viewing the items, the customer can now place an order.
● The systems database connection string should be defined in the web.config file.
● The name or username of the person logged in must appear at the top right corner of the current
page the user is navigating.
● Each product should have an image, price and description on the web page.
● Users should be able to add and remove items from their shopping cart.
● Before check-out, customers should verify and confirm their order in the shopping cart.
● Create a class called Person, which should be the super class of user, customer, and sales rep. All
instance variables must be encapsulated and only accessed via public properties.
● All input must be validated.
● Upon check-out, users should select their preferred payment method, which must either be
Ecocash, M-Pesa or Bank.
QP-ASM-001|Rev 004

o If the payment option is either EcoCash or M-Pesa, the user should enter their eight digit
mobile number and the amount to be paid.
o If the payment option is Ecocash, then the user’s number must start with 6.
o If the payment option is M-Pesa, then the user’s number must start with 5.
o If the user selects Bank as payment option, they should enter card number of exactly 12
digits.
Required
(a) Develop the web application with the minimum requirements described above using ASP.NET,
CSS, JavaScript, the C# programming language and Microsoft SQL Server. [60 Marks]
(b) Document your application, including all the designs of it and user manual. [40 Marks]

Page 3 of 5
Marking Key

Artefact (60 Marks)

Item Maximum possible


mark

Database Creation with all fields and tables 5

Validation of all input 5

Person class 3

Definition of other classes 3

Inheritance 3

Connection to database 2

Ability to retrieve, insert, edit database records 5

Login implementation 3

Sign up implementation 3

Showing username across pages 2

State management 3

Master Page Design 5


QP-ASM-001|Rev 004

Editing and adding items to shopping cart 5

Validation of payment method 3

User roles implementation 5

Appropriate content pages and their content 5

Documentation

Introduction 3

Page 4 of 5
System Design:

Entity Relationship Diagram 5

Normalization up to 3NF 5

Class diagram 5

System flowchart 8

User manual, showing screenshots 10

References (at least 10, properly referenced) 4

************************************The End**************************************
QP-ASM-001|Rev 004

Page 5 of 5

You might also like