CSC128 - Fundamentals of Computer Problem Solving: Title - Shoe's Inventory System

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 16

CSC128 – Fundamentals of Computer Problem Solving

Title - Shoe’s Inventory System

JCS1101D
Lecturer’s name: Sir Lezam bin Lehat

GROUP MEMBER ;

Name Matric card no.

Nadhirah Ashlah binti Hussein 2017241252

Izzah Atirah binti Shammudin 2017224904

Siti Sarah binti Idris 2017262516

Submission Date : 20 December 2017


TABLE OF CONTENT

NO. CONTENT PAGES

INTRODUCTION

1.0 1.1 PROJECT BACKGROUND 1-4


1.2 OBJECTIVES
1.3 SCOPE

IMPLEMENTATION
2.0 5 - 10
2.1 LIST OF REPETITION
2.2 LIST OF FUNCTION

3.0 PROGRAM TESTING 11 - 12

4.0 CONCLUSION 13

5.0 CD POCKET 14
1.0 INTRODUCTION

1.1 PROJECT BACKGROUND

Shoe’s Inventory System is a system that provide user interface for them to enter data.
This program is basically to make it easier for a shoe’s shop to check their shoe’s stock.
We can guaranteed that Shoes Inventory System is a user friendly system. After user
enter their desire data, this program will then calculate the total price of the shoes they
had choose. It will also display report of the sales at the end of the day which can help
the manager to check their sales performance. Though the most part of the system is
suppose to act in the background, effort have been made to make the foreground
interaction with user as smooth as possible.

1
1.2 OBJECTIVES

1. To record the shoe’s availability from time to time. This will help the users to track
on how many shoes that are still available in the system once they key in the number
of shoes that the users would like to purchase.

2. To calculate the price of each shoe that the user had selected and sum up the
prices and the grand total.

3. To notify the users if the number of shoe they want to purchase is exceeding the
current stock in the system.

4. To compute the total customer that has been using the program by incorporating
the loop functions in the program.

5. To calculate and record the total sales and total discount by the end of the day
and display it in a proper sales report.

2
1.3 SCOPE

The “SHOE INVENTORY SYSTEM“ is a program that enable users to track and
manage their inventory quicker and efficiently.

This program will prompt user to enter what type of shoe they are looking for the
which includes; size, color, and number of shoe the user wants to purchase.

There are 3 types of shoe available in this program and that are set to be :

 Code 1 = Old Skool


 Code 2 = New Era
 Code 3 = High Cut

TYPE OF SHOE COLOR SIZE

Old Skool 36,37,38

White & black


New Era 36,37,38
White & maroon
Black & blue black

High Cut 36,37,38

The stocks for the shoe are set to 30 for every size, which mean there are 270 shoes
in total. This program enables the users to buy more than one type of shoe with
different sizes.

After users has key in the total of shoe they needed. We will also calculate the total
price of the selected shoe. Every shoe comes with different prices.

TYPE OF SHOE PRICE

3
Old Skool RM 200
New Era RM 300
High Cut RM 400

The program will calculate the total price for every customer by the end of the
program. For each purchases above RM 500, the users will receive 15% discount.

Then, the program will calculate the total sales and total discount as well as the
amount of users for that day. At the end of the program, all the items will be shown in
a sales report.

2.0 IMPLEMENTATION

2.1 LIST OF REPETITION

4
This do...while loop will execute the whole body of statement after the system has calculate
the price for the selected shoes. The user will be asked if they want to purchase other shoe.
If they user choose not to continue the process, the system will display the total price and
the discount for the shoe as well as the total sales and sales discount for the day as in a
proper sales report.

5
This do...while loop will execute its body of statement if the user entered the wrong
size for the shoe. The system will prompt the user to enter the size again ,the looping
function will stop once the user enter the right shoe size.

6
2.2 LIST OF FUNCTION

1. void menu();

This function is to provide interface to user and make it easier for user to make their decision to
choose type of shoe . In this function, we combine all the other function for every type of shoes
and we call the function menu in main. This function has no return value as it starts with void.

2. Function void oldSkool(); & void newEra(); & void highCut();

7
Basically this function is to calculate the current stock by deducting the stock declared by the
system with the number of shoes entered by the user. This function will also display the colour
and size available in the system. All of the above function has similar content except for the

8
variable declared. This function has no return value as it starts with void.

3. Function char continueSession (char);

This function is to confirm with the customer either they want to buy next shoe or not. It will
display after the system has calculate the price for the first shoe. If the user enter ‘Y’ which
stand for yes, the system will loop all the way again to the function menu. This is a function with
return value.
4. Function char continueCustomer (char);

Function continueCustomer is to ask the user either they have another customer or not. It will
display after the user choose not to continue with the first session. The system will then return
cont1 to the main menu().

5. Function float calcPrice (int,int);

This function is to calculate price of total shoes the user entered. It will then return the value of

9
the price that will use to calculate discount and the price after discount.

3.0 PROGRAM TESTING

1 2

10
11
3

12
4.0 CONCLUSION

In conclusion, our system is to make it easier for any type of store to manage their stock. We
choose shoe for just an example of what our system can do. User can change it to something
else.It can also reduce the error that could be make by human. For instance, if a customer buy a
number of shoe, the stock will automatically deduct the number of shoe and print out the current
stock. This will make it easier for worker to work more efficiently and save even much more
time.

Plus, we have upgraded the system so it can print out the report at the end of the day. This will
help the shop owner to manage and foresee his or her store’s progress. We put out our best to
make this system worth to use. We keep on making the project scope larger by adding some
other function and it works wonderful.

13
5.0 CD POCKET

14

You might also like