You are on page 1of 8

MINI PROJECT CSC 425

JULY/NOVEMBER 2010

ASB1HMA (AS203)
[GROUP NAME: YANZY]
GROUP MATE:
1. NURUL ATIKAH BINTI SHAHRUL EFFENDI [2010881052]
2. NURHIDAYATUN NAZARAH BINTI NAZARUDDIN [2010447896]
3. NORAZREEN BINTI BAKRY
4. NADIATUL ASMA’ BINTI MOHD BAKTHIR [2010442896]
5. NURUL NADZIRAH BINTI AHMAD SHARIFFUDIN [2010636506]
INTRODUCTION
We are assigning to build a program, which use what we have learned in this whole
semester. All the topics that been discussed in this semester should be included in our mini
project. Although it seems to be very difficult to us, we have tried our best to make sure our
last task successfully done. For information, we have built one program using what we have
learned and we make use of it to make our own product for example. Based on our idea, we
have planned to make one system that easy for customer at supermarket or any relevant
places, and depends on whatever kind of business that they are dealing of, which make the
flow for the payment became less crowded by introduce the new solution which is “self
services”. Besides, these systems not only for the customers flow in supermarket for example,
but it eases the documentation of the owner for their sales per day.
In our project, we have show same example of our product depends for several items.
Using this, we have asked user to enter what items that they are wish to buy from our
company by choosing certain code products. Next, our program will calculate the price for
each item that they buy depends on the quantity that they wish to buy. After that, we also
provide calculation with certain discount for each item, since we have set each item with
certain discount. Hence, to make sure the flow in our market not stacked, we also provide the
receipt for customers after all the process done. After that, the customers need to pay all the
items that they picked at the counter provided.
The advantages of this system as we have stated earlier:

 It can reduce the “jammed” flow hence a customer does not need to wait too long for
their turn to pay their items.
 Second, it is easy for the documentation for the owner to save, record their sells per
day.
 Introduce new system, that surely is the first system and latest system in Malaysia.

The weakness for this system is, once the customer enter what items that they choose,
how the quantity that they want, if they are wish to make some changes, they need re-enter
back from the beginning. Means our system does not provided for customer to make some
change at one particular item only, but it required the user to re-enter back everything. Since
this is the best that we can do, we hope we deserve to get as much as what we have tried.
Refer to our project; we have made used what we have learned from our lecturer, Mr. Jasrul.
Our project includes the topics that very important since it also will come out in our final
examination. Hence, we have taken this chance to make used what have learned by applying
it in our daily life.
Based on what we have done, we build a program that contains the topics that we have
studied, for example, if else statement, switch, array and so on. Since the array chapter, we
have not learnt yet, but we managed to use it and apply in our project. Through a good
corporation from us as a teammate, and with a good “spirit of team work”, finally the tasks
were completed and successful. I would like to thank to all who have contribute for this “mini
project”. All of our hard work finally paid off. Thank you and well done.

Back to our project, we have used the header file:


 #include <iostream>
 #include <iomanip>
 #include <time.h>
 #include <stdlib.h>
Header file also called pre-processor directive, which is, enable the program to use the
function in the external file.
The variable declaration in our project:

 char sh[50];
 int mainmenu,end,isb,T;
 int i,j,counter;
 char extra,choice;
 float subtotal, tax, total

Here is the sample of our project

Header file

Function prototype

Construct file

Variable declaration

Main function

Variable declaration

Output
statement

Input statement
If statement
Switch statement

Output
statement

Function call

Do statement
Clear screen system
Function call
Input
statement

Output statement

Nested if statement

Input statement
If statement
Function call time

Goto statement

while statement

Output statement

Array statement

Output
statement
Output
statement

Command
statement

Output
statement

Input
statement

Function call
Else if statement
Goto statement Choice statement
( to call )

If-else statement
(to call )

End statement (to call)

Function Definition
-sleep()
Function Definition
-header()
-header1()
-header2()

Out
put
stat
em
ent

As we can see above, there some sample of our project and some comment for each
group of command. Generally, we have used the if-else statement, nested if else
statement, switch statement, the for loop, array.

A if statement takes an action if the specified condition is true and inversely if the
answer is false. The if statement makes selection based on single true or false
statement only condition efficiently.

An array in c++ is a collection of data elements of the same type that are referred by a
common name. All elements of an array a set of continuous memory locations and
each element can be identified by using an index or subscript.
FLOW CHART
CONCLUSIONS
As a conclusions from our project, we can conclude that this program give many advantage to
us. As we know nothing is perfect in this world including our system program for this project.
The advantage of this system is it can reduce the “jammed” flow hence a customer does not
need to wait too long for their turn to pay their items. Second, it is easy for the documentation
for the owner to save, record their sells per day.It also help Introduce new system, that surely
is the first system and latest system in Malaysia. The disadvantage of this market system is
once the customer enter what items that they choose, how the quantity that they want, if they
are wish to make some changes, they need re-enter back from the beginning. Means, our
system do not provided for customer to make some change at one particular items only, but it
required for the user to re-enter back everything.

By using this system also we can conclude that the difficult part of solving a problem
on computer is translating our ideas into the language that will be fed into the computer. The
most difficult part of solving problem on a computer is discovering the method of solution.
After come up with a method of solution, it is routine to translate your method into the
required programming language. An Algorithm is a sequence of instructions to solve a
problem because it is a sequence of instruction that expressed the step of solution in human
language, for example plain English.

Lastly, we would like to thank to our entire team member who had contributed a lot
in this final project, and especially to our supportive lecturer Mr. Jasrul. We had done the best
that we can to make sure this task completely done on time. Thank you.

You might also like