Professional Documents
Culture Documents
Methodology
Methodology
OriShoez is a system where customer can browse through the product catalog
and add the items to shopping cart. He can proceed to the checkout as long as his
shopping cart is not empty. Customer will require to login to the system when he
proceed to checkout, or he can create an account if he not yet have one. The order
will charge to the credit card registered in customer’s account. Customer need to
provide full name, email address, phone number, credit card and billing address details
when creating an account. Customer can login to the system to maintain his account
information, such as changing phone number ,address, and credit card details, and
check the status of his orders upon order received, the sales staff will process the
order by charge to customer’s credit card. Once the order has been charged, he will
then mark the order as paid and pass to the courier company and deliver them to
customer. If the items customer ordered is out of stock, then the order will mark as on
hold. Once the items arrived, the order will pass to the courier company for delivery.
Courier company will pack the item with standard packaging, but if the order is marked
as gift, then the items will pack as gift. If the items arrived are in damage, customer
can return it by register in the online shop. Courier company will collect the item from
customer and sales staff will refund the money for that item. Marketing staff are
responsible to maintain the product’s quality. He can also setup the promotion item list
and send promotion email to customer.
2
Page
Methodology
Analysis
In our project (OriShoez.com),we have done some survey and some analysis that can
be a guideline for us to build this system.This is the first step for us to start our project,then
make us to make a system that more arranged and easy to used.We also have took several
factors in this analysis regarding to the users of this system,the product and package that we
sell and the time taken to finish up this system.
Users
Shopping online buyers People that very love to shop without go to shop and
always search for a worth price for their items.
Shoes collecters They need a shop that have many type of shoes while
have a nice price.
Customer that from all ages They always search for package promotion that full their
need.
We providing the shoes size from kid until adult size.The delivery charge is free for all type of
packages and products.
Time taken to finish up building this this system ;
4 weeks.
3
Page
Analysis for our product and packages:
1)Main Products:
Tempo N2 RM230.00
Mercurial N3 RM270.00
Ignite 2 P2 RM239.00
London V2 RM200.00
4
Page
GumSole V3 RM289.00
2) Packages :
Package
Items Quantity Price (RM)
code
Sport Shoe 1
Shoe bag 1
A 290.00
Round Shoelace 1
Sport Sock 1
Sneaker Shoe 1
Backpack 1
B 320.00
Flat Shoelace 1
Casual Sock 1
C Nike Shoe 1
440.00
Converse Shoe 1
5
Page
3) Add on items:
A1 Shoebag 29.90
A2 Backpack 49.00
1.Flowchart
Start
Declare variables : Price, totPrice, amt_due, qty, type_brand, items, package,
code_pack,
code_pattern, type_shoes, type_pattern, item_code,
item_name, disc,
totAmt_Due, addOns, tax.
Read type_shoes, code_pattern, code_pack, item_code
else if(strcmp(code_pattern,AD1)==0)
Page
Price= 150.00
else if (strcmp(code_pattern,AD2)==0)
Price= 340.00
else if(strcmp(code_pattern, AD3)==0)
Price= 170.00
Price = 12.00
Page
Display totAmt_due
End
9
Page
Implementation
3 6 Discuss the error and fix all the error in our system
Sample Input 1
Sample Output 1
11
Page
Page
12
Sample Input 2
13
Page
Sample output 2
14
Page
CONCLUSION
In the course, Fundamentals of Computer Problem Solving, we have learned about the uses
and importance of computer in the modern application which include in engineering. We also
have understand of how the computer works. Other knowledge we gain from this course
includes using the nessesary steps in creating a basic program sourse code. Wide range of
application of the couse is also introduced to us, which includes, the If-else statements, loops,
functions and others. In this project, we have used a few of the application in making our
OriShoesz.com a success. Some of the applications we used is the if-else statements, loop,
and functions. These application are implemented to produce a simple and and effective
program. Continuous test is conducted to ensure the program does not produce any errors
when running. In conclusion, each purpose mentioned in the objective was able to be achieved
with the help of the program we created. With the help of our lecturer, we are able to proceed
with our online business which is OriShoesz.com
15
Page
REFERENCES
2. Re: [RFC] Convert builin-mailinfo.c to use The Better String Library" (Mailing list). 6
September 2007. Retrieved on 14 March 2017.
3. Stroustrup, Bjarne (7 March 2010). "Bjarne Stroustrup's FAQ: When was C++
invented?". stroustrup.com. Retrieved on 14 March 2017 .
4. Harry. H. Chaudhary (28 July 2014). "Cracking The Java Programming Interview ::
2000+ Java Interview Que/Ans". Retrieved on 14 March 2017 .
16
Page
APPENDICES
a) Source code :
#include <iostream>
#include <iomanip>
#include <string.h>
#include <cmath>
//function prototype
void typeOfShoes();
float calcShoes(char[10], int);
void addOns();
float typeofitem(char[10], int);
int main(){
char addpackage;
Page
char addshoes;
char additem;
float pricePackageA = 0.0;
float pricePackageB = 0.0;
float pricePackageC = 0.0;
float totPricePackage = 0.0;
float totPriceShoe = 0.0;
float price = 0.0;
float totPriceItem = 0.0;
float priceItem = 0.0;
float sumitem = 0.0;
float sumS = 0.0;
float totOrder = 0.0;
float amountDue = 0.0;
int quantityPackageA = 0;
int quantityPackageB = 0;
int quantityPackageC = 0;
int addShoes = 0;
int quantityPackage = 0;
int quantityaddshoes = 0;
int quantityadditem = 0;
float deliverycharge = 0.0;
char ansYes[5] = "";
char ansNo[5] = "";
char ans = ' ';
cout <<
"***********************************************************************************************
*************************************************************************" << endl;
cout << "\t\t\t\t\t\t\t\t\t\tWELCOME TO ORISHOEZ.COM.MY " <<
18
endl;
Page
cout <<
"\n*********************************************************************************************
**************************************************************************" << endl << endl;
cout <<
"***********************************************************************************************
*************************************************************************" << endl;
cout << "\t\t\t\t\t\t\t\t\t\tWELCOME TO ORISHOEZ.COM.MY " <<
endl;
cout <<
"\n*********************************************************************************************
**************************************************************************" << endl << endl;
do{
cout << "\nEnter the package code : ";
cin >> pCode;
endl;
Page
pricePackageA = 290.00;
quantityPackageA++;
endl;
Page
cout << "---------------------------------------------------------" <<
endl;
cout << "---\tVANS :: V1 :: CLASSIC ---" <<
endl;
cout << "---\t :: V2 :: LONDON ---" << endl;
cout << "---\t :: V3 :: GUMSOLE ---" <<
endl;
cout << "--------------------------------------------------------" <<
endl;
pricePackageB = 320.00;
quantityPackageB++;
}
pricePackageC = 440.00;
25
quantityPackageC++;
Page
}
//function call
typeOfShoes();
do{
cout << "Total price of shoes = " << sumS << endl;
addOns();
do{
//without package
else{
typeOfShoes();
do{
cout << "Total price of shoes = " << sumS << endl;
addOns();
do{
return 0;
void typeOfShoes() {
cout <<
"\n*****************************************************************************************"
<< endl;
cout << "\t\t\t\tTYPE OF SHOES\t\t\t" << endl;
cout <<
"*****************************************************************************************" <<
endl;
30
cout <<
"*****************************************************************************************\n"
<< endl <<endl;
if (strcmp(patternCode , "N1")==0){
price = 199.00;
totPriceShoe = price * quantityaddshoes;
sumshoes = sumshoes + totPriceShoe;
}
else if (strcmp(patternCode, "N2")==0){
price = 230.00;
totPriceShoe = price * quantityaddshoes;
sumshoes = sumshoes + totPriceShoe;
}
else if (strcmp(patternCode , "N3")==0){
price = 270.00;
totPriceShoe = price * quantityaddshoes;
sumshoes = sumshoes + totPriceShoe;
}
else if (strcmp(patternCode , "P1")==0){
price = 250.00;
totPriceShoe = price * quantityaddshoes;
sumshoes = sumshoes + totPriceShoe;
}
else if (strcmp(patternCode , "P2")==0){
price = 239.00;
totPriceShoe = price * quantityaddshoes;
sumshoes = sumshoes + totPriceShoe;
}
32
return sumshoes;
void addOns(){
if (strcmp(itemCode , "A1")==0){
priceItem = 29.90;
totPriceItem = priceItem * quantityadditem;
sumitem = sumitem + totPriceItem;
}
else if (strcmp(itemCode , "A2")==0){
priceItem = 49.00;
totPriceItem = priceItem * quantityadditem;
sumitem = sumitem + totPriceItem;
}
else if (strcmp(itemCode , "B1")==0){
priceItem = 10.00;
35
}
36
Page
b) Screen Output :
THIS IS THE FULL OUTPUT IF USER KEY IN THE RIGHT CODE FOR PACKAGE
37
Page
Page
38
THIS IS USER ENTERED INVALID CODE
39
Page
THIS IS THE FULL OUTPUT IF USER KEY IN THE RIGHT CODE FOR NON PACKAGE
c) User Manual
40
All the table package and pattern will displayed to user make a selection.
Page
1. User have to key in their personal information include Name, Account No, and Tel. No.
to be displayed on receipt.
2. Next, user have to choose wether he/she want purchase by package or without package
by entering code ‘Y’ or ‘y’ for yes and ‘N’ or ‘n’ for no.
3. If yes user have to choose package by entering code ‘A’ , ‘B’ or ‘C’.
Package
Items Quantity Price (RM)
code
Sport Shoe 1
Shoe bag 1
A 290.00
Round Shoelace 1
Sport Sock 1
Sneaker Shoe 1
Backpack 1
B 320.00
Flat Shoelace 1
Casual Sock 1
C Nike Shoe 1
440.00
Converse Shoe 1
4. Next, a list of pattern in pakage A will be displayed and user have to key
in the correct code for pattern that he/she wanter to buy shown in Fig1
TYPE OF TYPE OF CODE
41
Tempo N2
Mercurial N3
Ignite 2 P2
F50 AD3
Figure 1
5. If user choose package B the list of pattern in pakage B will displayed and user have to key in the
correct code for pattern shown in fig 2.
Converse Jack Purell CV1
Vintage NB2
Vans Classic V1
London V2
42
Page
GumSole V3
6. If user choose package C the list of pattern in pakage C will displayed and user have to key in the
correct code for pattern shown in fig 3.
Tempo N2 RM230.00
Mercurial N3 RM270.00
Ignite 2 P2 RM239.00
London V2 RM200.00
Page
GumSole V3 RM289.00
Fig 3.
7. After that, user have to answered wether he/she want addd package or not.
8. If no, next user have to answered wether he/she want to add shoes of not.
9. If no, finally user have to answered wether he/she want add item or not.
10. If user choose yes, the table item will displayed shown in Figure 4.
A1 Shoebag 29.90
A2 Backpack 49.00
Fig 4.