Algorithm that inputs the codes for all items in stock, Data Structure & Algorithms

A shop sells books, magazines and maps. Every item is identified by a unique 4 - digit code. All books have a code which starts with 1, all maps have a code starting with 2 and all magazines have a code which starts with 3. The code 9999 is used to end algorithm.

Write an algorithm in form of a flowchart that inputs the codes for all items in stock and outputs number of books, number of magazines and number of maps in stock. Include any validation checks needed.

 

1115_flowchart.png

Posted Date: 9/11/2013 3:15:39 AM | Location : United States







Related Discussions:- Algorithm that inputs the codes for all items in stock, Assignment Help, Ask Question on Algorithm that inputs the codes for all items in stock, Get Answer, Expert's Help, Algorithm that inputs the codes for all items in stock Discussions

Write discussion on Algorithm that inputs the codes for all items in stock
Your posts are moderated
Related Questions
Enumerate about the carrier set members Ruby is written in C, so carrier set members (which is, individual symbols) are implemented as fixed-size arrays of characters (which is

Almost Complete Binary Tree :-A binary tree of depth d is an almost whole binary tree if: 1.Any node and at level less than d-1 has two children. 2. for any node and in the tree wi

Write an algorithm to test whether a Binary Tree is a Binary Search Tree. The algorithm to test whether a Binary tree is as Binary Search tree is as follows: bstree(*tree) {

Q. How do we represent a max-heap sequentially? Explain by taking a valid   example.         Ans: A max heap is also called as a descending heap, of size n is an almos

A list item stores pointers and an element to predecessor and successor. We call a pointer to a list item a handle . This looks simple enough, but pointers are so powerful tha

In the previous unit, we have discussed arrays. Arrays are data structures of fixed size. Insertion and deletion involves reshuffling of array elements. Thus, array manipulation

Q. Define a sparse matrix. Explain different types of sparse matrices? Show how a triangular array is stored in memory. Evaluate the method to calculate address of any element ajk

It offers an effective way to organize data while there is a requirement to access individual records directly. To access a record directly (or random access) a relationship is

Illustrate the intervals in mathematics Carrier set of a Range of T is the set of all sets of values v ∈ T such that for some start value s ∈ T and end value e ∈ T, either s ≤

1.  You are required to hand in both a hard copy and an electronic copy of the written report on the project described in A, including all the diagrams you have drawn.  2.  You