Skip to content
← Back to Community
python code
Profile icon
vishnu212121

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.

Voters
Profile icon
MadisonJackson5
Profile icon
vishnu212121
Comments
hotnewtop
Profile icon
MrVoo

Did you forget to send your project?

Profile icon
vishnu212121

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

Profile icon
MrVoo

@vishnu212121 Well, try figuring it out