Develop a program that will update stock levels following


Complete all tasks and provide evidence:

For the following scenario analyse the detailed requirements for each situation and, using suitable algorithms, design a solution to be coded in a suitable high-level programming language. Show the iterative development of the individual solutions with suitable testing throughout the process. Test the final products and evaluate your solutions against the detailed requirements you identified in the analysis.

The results for a task may be used without further testing in any subsequent task, or each of the tasks may be solved as a separate system.

Stock control

Products are identified by a GTIN-8 (Global Trade item Number), this is often represented using a barcode.

1660_Figure.png

In the barcode above, the GTIN-8 is 1324 5627.

The GTIN-8 uses a seven digit code plus a check digit for validation. The eighth digit of a GTIN-8, the check digit, is calculated as follows:

 

Position of Digit (D)

GTIN-8

D1

D2

D3

D4

D5

D6

D7

D8

Multiply the seven digit in order alternately by 3 then 1

 

x3

x1

x3

x1

x3

x1

x3

 

Add the outcomes together to get a sum

Subtract the sum from the nearest equal or higher multiple of 10

The result is the eighth digit of the GTIN-8, the check digit

For example: the seven digits 1324562:

GTIN-8

1

3

2

4

5

6

2

D8

Multiply the seven digits in order alternatively by 3 then 1

 

x3

x1

x3

x1

x3

x1

x3

 

 

3

3

6

4

15

6

6

 

The sum is 43

Subtract 43 from 50 to get the check digit 7

The resulting GTIN-8 is 13245627

Repeating the process of multiplying by 3 then 1 will give a sum that is a multiple of 10 that can be used to check the validity of the GTIN-8 product code.

For example, the eight digits 13245627:

GTIN-8

1

2

2

4

5

6

2

7

Multiply the eight digit in order alternately by 3 then 1

 

x3

x2

x3

x1

x3

x1

x3

x1

 

3

3

6

4

15

6

6

7

The sum is 50, a multiple of 10, therefore valid

Task 1 - Analyse the requirements for this system and design, develop, test and evaluate a program to:

  • Calculate the GTIIN-8 product code from a seven digit number
  • Check the validity of an eight digit GTIINI-8 code

Task 2 - Create a suitable text file to use with a high-level programming language containing a list of product details, including a GTIN-3 product code, a product description and price.

The program should allow a user to enter GTIN-8 codes for a list of products they wish to purchase and the quantity required of each product. The program should search the stock file to produce a list of products with their descriptions, prices, cost for each of the quantity selected and the total cost for all of the products. The program should also identify products not found.

877_Figure1.png

Analyse the requirements for this system and design, develop, test and evaluate a program to allow a user to enter GTIN-8 codes for a list of products and a quantity. The program should produce a receipt, i.e. a list of products with descriptions, prices, cost for each of quantity selected and the total cost of all the products ordered.

Task 3 - Develop a program that will update stock levels following an order. In the stock file include a current stock level, re-order level and target stock level (the number of products required in stock after the product is re-stocked), The program should, when instructed to do so, calculate which products are out of Mock or below the fe-order level and create a file_ This file will contain orders for re-stocking that will bring the current stock level of these products up to the target stock level.

Analyse the requirements for this system and design, develop, test and evaluate a program to update stock levels following an order and create an order for re-stocking that brings the stock levels for products that are out of stock or below the re-order level up to the target stock level. You will need to create a suitable stock file and a series of orders to test this system.

Request for Solution File

Ask an Expert for Answer!!
Dissertation: Develop a program that will update stock levels following
Reference No:- TGS02201840

Expected delivery within 24 Hours