56Tracking Inventory

Write a program that tracks your personal inventory. The program should allow you to enter an item, a serial number, and estimated value. The program should then be able to print out a tabular report in both HTML and CSV formats that looks like this:

Name

Serial Number

Value

Xbox One

AXB124AXY

$399.00

Samsung TV

S40AZBDE4

$599.99

Constraints

  • Store the data in a persistent local data file in JSON, XML, or YAML format.

  • Require numeric data for the value of each item.

Challenges

  • Alter the program so that it can store photos. If you’re creating this application for a mobile device, allow the user to take a picture with the camera.

  • Allow the items to be searchable.

Get Exercises for Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.