CSC118 - Algorithm
CSC118 - Algorithm
Kampus Jasin
MINI PROJECT
CONTENTS
Title Pages
Contents 1
Introductions 2-3
Objective 4
Documentation:
1) Pseudocode 58
2) Flowchart 9 - 10
Conclusion 11
Disclaimer 12
MICROSOFT OFFICE USER 1
INTRODUCTIONS
First and foremost, we would like to thanks our coordinator @ Lecturer Madam
Zainab bt Othman in anticipation, who has provide and guide us thoroughly
with this project as one of the key curricular of Fundamentals Of Algorithm
Development [CSC118]. This project was started on 7 March 2016. Our team
has decided to choose Project on Bookstore as our project. The name given
to our bookstore is FND Bookstores.
MICROSOFT OFFICE USER 3
OBJECTIVE
ii) Create a system which allows users to search and purchase a book
based on category, author and genre.
iv) Develop a system in which can efficiently and effectively stores and
process information and bookkeeping
MICROSOFT OFFICE USER 4
PSEUDOCODE
Start
Set respond = c , respond2 = y, respond3 = Y
Set total1=0, total2=0, total3=0, total4=0, total5=0, total6=0, totalAll=0
While (respond == C or respond ==c)
Display Enter your choice
Read num
If (num == 1)
While(respond3 == y or respond == Y)
Call bookMenu()
Display Book No. :
Read bNum
Display Quantity :
If(bNum == 1)
Display Cooking Book
total1 = 36*quantity
Display The price is RM
Read total1
Else if(bNum == 2)
Display Novel
total2 = 19*quantity
Display The price is RM
Read total2
Else if(bNum == 3)
Display Text book
Total3 == 11*quantity
Display The price is RM
Read total3
Else if(bNum == 4)
MICROSOFT OFFICE USER 5
Display Documentary
Total4 = 67*quantity
Display The price is RM
Read total4
Else if(bNum == 5)
Display Fiction
Total5=14.50*quantity
Display The price is RM
Read total5
Else if(bNum == 6)
Display Non fiction
Total6 = 8*quantity
Display The price is RM
Read total6
Else
Display Invalid Book No.
Endif
Endif
Endif
Endif
Endif
Endif
Endif
Display Buy other books?
Read respond3
totalAll = total1+total2+total3+total4+total5+total6
Display The total price is RM
Read totalAll
Else if(num == 2)
While(respond == y or respond == Y)
Call bookMenu()
Display Enter the book no. to search:
Read bookN
MICROSOFT OFFICE USER 6
If (bookN == 1)
Display The book is in the Skills section
If (bookN == 2)
Display The book is in the Novel section
If (bookN == 3)
Display The book is in the Education section
If (bookN == 4)
Display The book is in the History section
If (bookN == 5)
Display The book is in the Fiction section
If (bookN == 6)
DisplayThe book in NonFiction section
EndIf
EndIf
EndIf
EndIf
EndIf
EndIf
Display Search for other book? (Yes = Y , No = N)
Read respond2
Endwhile
Else
Display Exit(E) or Continue (C)? :
Read respond
Endif
Display Thank You For Shopping At FNB Book Store!!
Display Please Come Again
End
MICROSOFT OFFICE USER 7
Submodule bookMenu()
Display ***WELCOME TO FNB BOOK STORE***
Display 1. Purchase Books
Display 2. Search Books
Display 3. Exit
Return
Submodule bookMenu()
Display No || Title || RM
Display =================
Display 1. Cooking = 36.00
Display 2. Novel = 19.00
Display 3. Text Book = 11.00
Display 4. Documentary = 67.00
Display 5. Fiction = 14.50
Display 6. Non Fiction = 8.00
Return
MICROSOFT OFFICE USER 8
start
quantity
total1= total2= total3= total4= total5 = total6 = totalAll = 0
as
No
respond=c
Yes end
respond3=y
No
Yes
display Book No.
read quantity
Yes
bNum=1
display Cooking Book total1=36*quantity display The price is RM
display total1
No
Yes
bNum=2
display Novel total2=19*quantity display The price is RM
No
display total2
Yes
bNum=3
display Text Book total3=11*quantity display The price is RM
No
display total3
Yes
bNum=4
display Documentary total4=67*quantity display The price is RM
display total4
No
Yes
bNum=5
display Fiction total5=14.50*quantity display The price is RM
display total5
No Yes
bNum=6
display Non-Fiction total6=8*quantity display The price is RM
No display total6
display Invalid Book no.
display Buy other book(s)? (yes-Y,no-N) :"
display The total price is RM
read respond3 totalAll=total1+total2+total3+total4+total5+total6 display totalAll
as
No
Yes
bookN=2 display The book is in the Novel section
No
Yes
No Yes
bookN=5 display The book is in the Fiction section
No Yes
read respond2
CONCLUSION
Hitherto, this projects has helps in broadening our view and perspective on the
matters of key developing programs. We know know how important it is for
system to be seriously implemented in our daily lives for efficiency.
~ THE END ~