Ask coding questions

← Back to all posts
python code
vishnu212121 (0)

A shop sells books, maps and magazines. Each item is identified by a unique 4 – digit code. All books have a code starting with 1, all maps have a code starting with 2 and all magazines have a code starting with 3. The code 9999 is used to end the algorithm. Write an algorithm in the form of a program which inputs the codes for all items in stock and outputs the number of books, number of maps and the number of magazines in stock. Include any validation checks needed.

Comments
hotnewtop
MrVoo (190)

Did you forget to send your project?

vishnu212121 (0)

no its my hw but I don't know how to do it @MrVoo

MrVoo (190)

@vishnu212121 Well, try figuring it out