Write an algorithm, in the form of a flow Chart?
- A small shop sells sweets, magazines and drinks. Each item sold is identified by a unique 4-digit code. All sweets sold have a code that starts with a 1, all magazines sold have a code that starts with a 2 and all drinks sold have a code that starts with a 3. So:
- 1000 to 1999 are the codes for sweets,
- 2000 to 2999 are the codes for magazines, &
- 3000 to 3999 are the codes for drinks.
- (9999 is used to stop the algorithm)