Vous êtes sur la page 1sur 70

GAME SELLING AND PURCHASING COMPANY

MADE BY SYED MUHAMMAD AYAN JAFRI

Content
Table of Contents
Analysis ..................................................................................................................................................... Description of the Problem ................................................................................................................. 3 Interview ............................................................................................................................................. 3 Objectives............................................................................................................................................ 4 Description of the Existing Solution .................................................................................................... 5 Evaluation ............................................................................................................................................ 5 Description of the other method of solution ...................................................................................... 6 Design ....................................................................................................................................................... Action plan .......................................................................................................................................... 6 Flowchart ............................................................................................................................................ 7 Description of the Method of Solution ............................................................................................... 7 List of Hardware ................................................................................................................................ 13 List of Software ................................................................................................................................. 14 Implementation........................................................................................................................................ Method of Solution to the By Suitable mean ................................................................................... 15 Accurate Method of Solution ........................................................................................................... 17 Programming Codes ......................................................................................................................... 18 Testing ...................................................................................................................................................... Test Strategy ..................................................................................................................................... 26 Test result.......................................................................................................................................... 36 Documentation ........................................................................................................................................ User Guide......................................................................................................................................... 52 Evaluation and Development .................................................................................................................. Evaluation.......................................................................................................................................... 70 Development..................................................................................................................................... 70

Phase 1: Analysis
1.1 DESCRIPTION OF THE PROBLEM
I am making a project for a game selling company. The company buys the game form the different game making companies. The company sells many types of games, on different types of platform. They sell their games to many shops, sometimes on large scale or sometimes just two or three games to a small shop. The company has manual way to record their buying and selling games. The problem arises when they buy their games they need to add to the previous recorded so that they know how many games do they have on stock. When they sell games the same problem arises and now this time they have to recorded how many games are sold so that they can buy the new games in order to be save of out of stock condition. For the large scale buyer they want to give them discount. When they receive the games it is recorded on a register by pen, and when the sell the game then also it is recorded manually. Human is not fast that he can write many games name in one time and add to previous one. The register gets dirty of overwriting due to small mistake. For discounts mathematical operations need to be operated and human is not so much efficient to do this manual and need a calculator for that.

INTERVIEW
Interview with Ali Mehdi CEO of The Game Selling Company. Interview time : 4:30 pm Me: Hello Ali: Hello Me: May I have your time for a moment. Ali: Yes, Sure Me: Would you like to tell that, what your company does? Ali: My Company buys video games from the company and then sells to the shops in the city. Me: What is the procedure for saving the information? Ali: We save our information manually and they are stored in a room.
3

Me: Are they secure? Ali: Not much we are facing problem for that and have a security guard in the main door. Me: How do you get files record if you want to give it to someone client or make a report for yourself. Ali: We collect all data of clients and then make a big file of it which allows us to check it. Me: Is it time consuming? Ali: A lot off. Me: If the data is lost, how do you recover it? Ali: For very important data, we make a copy it in two files. One is kept by my in my home and other in the office. Me: Are you looking for any improvement in your system? Ali: Yes we are, but couldnt find it till now. Me: Thank you for your time Sir. Ali: Youre Welcome.

1.2 OBJECTIVES
For the project I will cover up these objectives. Firstly it will make the process faster whenever the company sells or buys the game they can be easily record the price with the help of barcode reader and if the games are sale or bought on large scale it can be multiplied to get the price of all games sold. This record can be saved on database so that they can easily access to it. They can also easily sort the data by name or type so that when the buyer comes he doesnt waste time searching the game availability. The record can easily be edited rather than making the register dirty. The manager will able to see the record easily and can calculate that whether the company is going in profit of loss. The manager cans also the view that how many games are bought or sold by the database and the cost of each game would be give there. As there is the danger of been data lost of excess by another, there would be a password in the application so that the data is saved. The manager can also view some websites in which he could know the new game releasing.

1.3 DESCRIPTION OF THE EXISTING SOLUTION


When I interview the company manger I get to know how they manage their business and how they record their stock. When they receive the games the manual record the receiving on register in which they have column name; Game Name, Game platform, Price of one game, Quantity etc. When they sell their games that is also recorded in a register of same column has to buying one but this type they add the information of the buyer so that he dont copyright the games of sell the game illegal. Then the stock in been update. For the updating the buying record is minus by the sold record of the current the day. In the whole week once this calculation is done in different office this due that every day the manual book cannot be taken to office, it has chances of being misplace. The company makes the discount for large scale buyer but the calculation takes a lot of time and need good mathematical calculator and operator to operate it. The result of stock in been presented to the director of the company once a month, because it takes a lot of time to summarize the data.

1.4 EVALUATION OF EXISTING SOLUTION


Currently the company uses the manual way to record their stocks. The advantage of this way is that company is saved from the electricity bills. For the manual record not much educated workers are need. There are many disadvantages of this type of record. If they file or register in which the stock is recorded is lost or misplace the company will have a huge lost in their business. There is also the chance of human error which can occur in the writing of the records. If they company have experienced workers who can write faster and do mathematical quickly this will improve the record for the company. They can also keep the selling and buying files in a separate room on a well organize shelf which will make easy for them to find the record.

1.4 DESCRIPTION OF OTHER POSSIBLE SOLUTIONS


In order to be save from the lost of business the company can use different types of computer software to save its time and records. One of this is using the spreadsheet; he can use a Microsoft spreadsheet to record his data. By using the column to save his data and for mathematical operation he can simply use the formula to add all sums or make discount to his buyer. The manager can only have 2 or 3 computer to make his worker work easily and take records better way. The other solution of the problem is the proposed software, which will help his worker work more easily. It will save their data from hacking and only the worker can access to it. It will help them to find the games easily and there platforms and save the data up to date. The list of games bought and sold will be easily mailed to the manager with any lost. The software will make a back up file for them which will save their data if any fault occurs in the computer it can be recover from that.

Phase: 2 Design
1. SYSTEM FLOWCHART
START

Login form NO Password Match

Yes

Purchasing Form Manager Invoice print Main Form

Seller

Purchaser Selling Form

Persons Form

Selling report Purchasing report Current stock Internet sites

Invoice print

2. DESCRIPTION OF THE METHOD OF SOLUTION

This is the main page of the visual basic 6.0 in which the project is made.

By pressing the standard EXE which will open the form in which the design will be made

This show how many forms are there and which form are you working in it. This is how the forms are. In this we design the outlook From here the stuff are drag and drop on the form to make it working. This shows the property of the form and all the things which are added to the form

This is the Label in which label is given. In this data cannot be entered when the programming is running. It is dragged from here.

This is the text box in which the text is entered. It can be dragged from here This is data grid which is used to show the data from the data base and it is added from here This is adodc which is used to connect the data from the data base and it is added from here. This is the command button. In this the button is pressed and the action will be performed it will be drag from here.

10

To create a new data base we will click this button and the option of creation will come from which we will make it.

This is the MS Access main page. In this the data is stored in the form of table. In this there are various readymade databases are there but will take the blank one. ba

11

This is the data base outlook where you can see your saved data. Over here you can also edit it These are the field where the data is inserted. These are record in this specific thing are viewed This shows the number of table used and which table we are

12

In this field name will be entered. In this we select what type of data will be entered In this the property of field will selected

3. List of Hardware used


Barcode reader: Barcode reader will be used to determine the price of the Game and the company which has manufacture. It will reduce the time for which the man has to enter the whole number on the computer. 240 GB Hard disk: This will allow the company to store the huge amount of data on it. This will also allow the company to download any other software on the computer which will help the worker if they are free and make them fresh. 1 GB RAM: This will enable the worker to do the work fast as the computer will run faster.

13

4. List of Software used


Visual Basic: This is the main software used in the project. It allowed making the software which the company will use. Its coding allowed me to make the software better and available for all the members of the company which are working in it. It allowed for us to make a better project as it combines of many things like text box, command button, combo box and adding pictures to the background which will help it look attractive for the company. MS Access: This was used to store data on correct field. By this we can search the data easily and sort it as we like to do so. This also contains a primary key button in which will helps us to indentify the difference between every customer thats come to the company. Corel Paint shop Pro X4: This software was used to edit the photos of the background used in the project designed. By this I removed name of platforms from the picture so only colour pictures are displayed. MS Project: This software was used to design the Gantt chart. This helped me to prepare the project within the time limit. MS Office: This was used to write the analysis face and other document. The fonts and the arrangement of line helped to write it clearly.

14

Phase 3: Implementation
1.METHOD OF SOLUTION RELATED TO THE PROBLEM BY SUITABLE MEAN
The software have been made by suitable mean all the targets are achieved. The company first problem was the Data be record in the register but now it will record in database like this the following shows the seller form now

Now in this it the data can be easily saved and the calculations will also be done automatically. The Record will be saved in the data base and it can also be viewed in the manager from of selling report.

15

This shows the view of the database saved data which can also be edited here in anything went wrong.

The following show the data viewed in the manager form in which the total sales can also be calculated.

16

By this way the data wont be lost and large calculations can be done easily.

2.ACCURATE METHOD OF SOLUTION


As mentioned in the objectives that the company will be able to use the project easily and there will be no difficulties, these objectives are achieved. The selling and purchasing record will be entered in the computer and saved there. The data will be saved in it by the password by which only the manager can view it. The data will also be saved in the database in which you can view and edited (how to view it is explained in the user guide). In the manager form there is the option of making report in which the total report been made and the manager could see that whether the company is going in the profit or loss. He can also view various website of games and calculate the total sale and purchase in the sale report and purchase report.

17

3.PROGRAMMING CODES
These codes where input in the Visual Basic Forms to operate them. Welcome Form
Form2.Show Me.Hide

Login Form
Login Button If T1.Text = "" And T2.Text = "" Then MsgBox "Insert username and password", vbInformation Else If T1.Text = "" Then MsgBox "Insert username", vbInformation Else If T2.Text = "" Then MsgBox "Insert password", vbCritical Else If T1.Text <> "buyer" And T1.Text <> "seller" And T1.Text <> "manager" Then MsgBox "Wrong Username", vbExclamation Else If T2.Text <> "buy" And T2.Text <> "sell" And T2.Text <> "manage" Then MsgBox "Wrong Password", vbCritical Else If T1.Text = "buyer" And T2.Text = "buy" Then Form3.Show Me.Hide Else

18

If T1.Text = "seller" And T2.Text = "sell" Then Form4.Show Me.Hide Else If T1.Text = "manager" And T2.Text = "manage" Then Form5.Show Me.Hide End If End If End If End If End If End If End If End If Close Button Me.Hide

Purchasing Form
Save Data Button Adodc1.Recordset.AddNew Adodc1.Recordset.Fields(0) = Text1.Text Adodc1.Recordset.Fields(1) = Combo1.Text Adodc1.Recordset.Fields(2) = Text2.Text Adodc1.Recordset.Fields(3) = Text3.Text Adodc1.Recordset.Fields(4) = Text4.Text

MsgBox "Record Is Save"

19

Clear Field Button Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Combo1.Text = "" Log Off button Form2.Show Me.Hide Total Price Text Text4.Text = Val(Text2.Text) * Val(Text3.Text)

Selling Form
Person Information Button Adodc1.Recordset.AddNew Adodc1.Recordset.Fields(0) = Text1.Text Adodc1.Recordset.Fields(1) = Combo1.Text Adodc1.Recordset.Fields(2) = Val(Text2.Text) Adodc1.Recordset.Fields(3) = Val(Text3.Text) Adodc1.Recordset.Fields(4) = Text4.Text

MsgBox "Record Is Save" Form6.Show Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Combo1.Text = ""

20

Me.Hide Log off Button Form2.Show Me.Hide Total Price Text Text4.Text = Val(Text2.Text) * Val(Text3.Text)

Selling Persons Information Form


Save Information button Adodc1.Recordset.AddNew Adodc1.Recordset.Fields(0) = Text1.Text Adodc1.Recordset.Fields(1) = Text2.Text Adodc1.Recordset.Fields(2) = Text3.Text Adodc1.Recordset.Fields(3) = Text4.Text Adodc1.Recordset.Fields(4) = Text5.Text

MsgBox "Record Is Save", vbApplicationModal Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Form4.Show

Manager Form
Selling Report Form7.Show Me.Hide Purchasing Report 21

Form8.Show Me.Hide Monthly Report Form10.Show Me.Hide Internet sites Form9.Show Me.Hide Log off Form2.Show Me.Hide

Selling Report
Make Report button Dim tot_sales As Long Adodc1.Recordset.MoveFirst

Do While Adodc1.Recordset.EOF = False tot_sales = tot_sales + Adodc1.Recordset.Fields(4) Adodc1.Recordset.MoveNext Loop Label4.Caption = tot_sales

Dim tot_sales_price As Long Adodc1.Recordset.MoveFirst

Do While Adodc1.Recordset.EOF = False

22

tot_sales_price = tot_sales_price + Adodc1.Recordset.Fields(2) Adodc1.Recordset.MoveNext Loop Label5.Caption = tot_sales_price GO BACK Button Form5.Show Me.Hide

Purchasing Form
Make Report Button Dim tot_sales As Long Adodc1.Recordset.MoveFirst

Do While Adodc1.Recordset.EOF = False tot_sales = tot_sales + Adodc1.Recordset.Fields(4) Adodc1.Recordset.MoveNext Loop Label4.Caption = tot_sales

Dim tot_sales_price As Long Adodc1.Recordset.MoveFirst

Do While Adodc1.Recordset.EOF = False tot_sales_price = tot_sales_price + Adodc1.Recordset.Fields(2) Adodc1.Recordset.MoveNext Loop Label5.Caption = tot_sales_price

23

Go Back Button Form5.Show Me.Hide

Monthly Report
Make Report Button Dim tot_sales As Long Dim tot_purchase As Long Dim loss, profit As Long

Adodc2.Recordset.MoveFirst

Do While Adodc2.Recordset.EOF = False tot_sales = tot_sales + Adodc2.Recordset.Fields(4) Adodc2.Recordset.MoveNext Loop Label4.Caption = tot_sales

Adodc1.Recordset.MoveFirst

Do While Adodc1.Recordset.EOF = False tot_purchase = tot_purchase + Adodc1.Recordset.Fields(4) Adodc1.Recordset.MoveNext Loop Label5.Caption = tot_purchase

Label7.Caption = Val(Label4.Caption) + Val(Label5.Caption)

24

profit = Val(Label4.Caption) loss = Val(Label5.Caption) If (profit) > (loss) Then MsgBox "greet you have profit in business", vbOKOnly Else MsgBox "sorry you have loss in business", vbOKOnly End If Go Back Button Form5.Show Me.Hide

25

Phase 4: Testing
TEST STRATEGY

This is the Start menu and pressing the button will open it.

26

This is the login form where user will input the data. This is made so that the data cannot be viewed from the other persons expect the user.

27

When password of purchasing form is given this will appear. In this the data will be input. In the objectives it was said that the data will be input in computer and it will be saved in the database which can only be viewed by the manager.

28

When the password of seller form is input then this form will appear. This data will also be input in computer saved in database in different table.

29

When the record is saved this form will appear in which the data input is necessary. The data in this form is necessary because the company wants to know whom they had sells the games.

30

This form will appear when the manager input its password. As said manager will have form options in which he can go. The selling report will give the information of the selling and the purchasing about purchases. Monthly report will show the both and will tell about the profit and lost. Internet sites will give him the sites to be visited.

31

This form will appear purchasing Report button is pressed. Then the Report will be generated. As in the screen the manager can view the table which will tell him how many games are bought and at what price and he can easily generate the report to see the total which dont need to do it by himself.

32

This will appear when the Selling Report button is pressed. Then the Report will be generated. This show about the selling of company and the table can be viewed here. He can calculate the whole sale by just a press of button.

33

This will come when the internet sites button is pressed. The sites can be visited by clicking on it by the internet should be available to him at that moment.

34

This is the monthly report. In this he can calculate the total sale and can also view them. He can easily do it by just press of the button and overall result will be generated which will tell him whether he is going in profit or in lose.

35

TEST RESULTS
Has seen in the Test Strategy all the objectives were covered as mentioned in the objectives (in phase 1 of the project) now in this it will be tested that whether they are working or not, to see the expected result. To see that all the codes are working or not the file was made to its exe and then tested.

This is the start form. The button will take us to the login form.

36

Login form is shown. From here the user will go to different form. Seller to selling form, Purchaser to purchaser form and Manager to manager form.

If the username is wrong this message will appear.


37

If the password is wrong this message will appear.

38

This is purchasing form will can be view after its password as been enter.

When the data is filled in text box the message will appear to inform the user.
39

When seller password is input this form will appear.

40

When the data is filled and saved the message box will appear. Then it will move directly to Person Information

This will appear when seller game information is saved.

41

When the data filled and saved the message box will appear. Then the application will move back to the seller form.

42

When the manager login to application this form will appear. Then he can move to four different forms.

43

This is the purchasing form in this the report of purchasing will be made.

44

When the button is pressed the Report will be made.

45

This is selling report form in this the report will be made.

When the button is pressed the report will be made.


46

The internet sites are shown in the form as said.

47

This is the monthly report form in which profit or lose will be seen.

48

The report will be made and it will tell him whether the business is going in profit or lose. As seen now that we know that the results are in positive and a normal. When pressing the button the action is performed, the message boxes are also displayed and the data is also saved in the database. The database can be seen here.

49

This is the table of games sell and the information about person is in this.

50

This shows the purchasing table.

After the result shown it can be seen that the application is working properly.

51

Phase 5: Documentation
USER GUIDE
This is the label and it comes in every form to show where you are and what you have to do

This is the Start button which will start the software and open the login from

52

This is the text box in which the user name will be input This is the text box in which the password will be input This is the button which will confirm the password and username is correct if the anything is wrong it will display the message This will close the application.

53

This will be shown when Wrong username will be inputted

54

This will be shown when wrong password is input.

55

This will take to the Login form In this Name of game bought will be input The platform will be selected here from combo box In this quantity of game will be input In this price of one game will be input This will automatically give the total price This will take to the Persons information there is no quick option in it

56

In this name of game will be input In this name of the buyer shop will be input In this the shop address will be input In this NIC number of that person will be input In this Email of that person will be input This will save the information.

57

When you have entered the data in the field Press this button the message box will appear which will show that the data is saved and it will take you to the persons information This message will box will appear when the data is saved

58

When you have input the data press save button This button will save the information and message box will appear When this message box comes it means that data is saved

59

This shows that the data is been saved in the database and can be viewed any time.

This shows that the data is been saved in the database and can be viewed any time.

60

This will close this and take it to login form This is to enter Game name This is to tell for which type of game platform it is. This is to put how much games are bought This will tell us the price of one game This will show the total price of game bought. This will save all the data input This will clear all the fields

61

When you enter the data in the fields Press the Save button When you press the save button the message will appear This is the message that will appear when you save data

In the data base it can be viewed by this as all the record will be saved here this can be viewed anytime and if anything entered wrong can be edited

62

This will close this window This will show the Selling repot form This will show the purchasing Report form This will show Monthly Report Form This will show some internet websites

63

This show the total purchase by the company This show the amount collected from the purchase This button will make the Report Automatically This show the data of the save games which will be displayed here

This will go back to manager form

64

After pressing the button the value will be shown in the space given.

This will go back to manager form

65

This will go back to manager form This page shows the internet sites which can be viewed and visit by clicking on them.

66

This show the total sale from the company This show the amount collected from the sale This button will make the Report Automatically This show the data of the save games which will be displayed here

This will go back to manager form

After pressing the button the value will be shown in the space given.

This will go back to manager form

67

This is the monthly report form in which he can get the report of the both selling and purchasing This shows the total sale and other shows the total purchase. The last one of shows the total of the both after which the result will be displayed This button will make the report. This shows the table of the Purchasing and selling which can be viewed here. This will go back to manager form

68

When click the button the result will be displayed and then a message box will appear which will tell us whether you are going in Profit or in Lose

69

Phase 6: Evaluation and Development


EVALUATION
As the company used the application they were delighted with it. They found that it is so easy to use the Application and not many workers are need for this application. They manager said that the calculations are easier and many high calculation can be done easily. He added that it is good for him and the company that they can know whether it is going in profit or in lose. By this they can easily do right for the company which will make it to go in profit.

DEVELOPMENT
In this Application different development can be done. There can also be a form of Person whom the company is purchasing the games. There can be a form in which the buyer or seller can be given discounts and which will attract them to buy or sell games to them only. They can make a website of their company which will sell or purchase the games online to it will be available to many people. Going online will allow them to interact with many users and game lovers. The Company can make the their online games which will be played on the website easily from which they can get good amount of money.

70

Vous aimerez peut-être aussi