Write an algorithm outputs number of books using psuedocode, Data Structure & Algorithms

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

Write an algorithm using pseudocode that input the codes for all items in stock and outputs number of books, magazine and maps in stock.

Include any validation checks necessary.

 

Posted Date: 9/11/2013 4:01:33 AM | Location : United States







Related Discussions:- Write an algorithm outputs number of books using psuedocode, Assignment Help, Ask Question on Write an algorithm outputs number of books using psuedocode, Get Answer, Expert's Help, Write an algorithm outputs number of books using psuedocode Discussions

Write discussion on Write an algorithm outputs number of books using psuedocode
Your posts are moderated
Related Questions
what are grounded header linked lists?

Ask question 1. Indicate whether each of the following properties is true for every Huffman code. a. The codewords of the two least frequent symbols have the same length. b. The

Channel access In first generation systems, every cell supports a number of channels. At any given time a channel is allocated to only one user. Second generation systems also

explain implementation of circular queue insert,delete operations

for (i = 0; i sequence of statements } Here, the loop executes n times. Thus, the sequence of statements also executes n times. Since we suppose the time complexity of th

Algorithm for Z-Buffer Method (a)  Initialize every pixel in the viewport to the smallest value of z, namely z0 the z-value of the rear clipping plane or "back-ground". Store a

Explain about the Structured types - Built-In Types Values of the carrier set are not atomic, consisting rather than several atomic values arranged in some way. Common illu

The data structure needed to evaluate a postfix expression is  Stack

Instructions Design and test a reference array. Reference array stores the references to user supplied objects of different types. Just think it as a heterogeneous array wh

Linear search employee an exhaustive method of verified each element in the array against a key value. Whereas a match is found, the search halts. Will sorting the array before uti