Question: Write a text-based transaction program for recording stock levels in a warehouse. A transaction is either an import, an export, or wastage (e.g., when

Write a text-based transaction program for recording stock levels in a warehouse.  

Write a text-based transaction program for recording stock levels in a warehouse. A transaction is either an import, an export, or wastage (e.g., when stock falls off a shelf and breaks) of items, and consists of the item name, item type, number of items, and, if applicable, the importer/exporter name. Item type can be freely chosen by whoever uses the application. The program should have the following features: Users will be able to record ingoing and outgoing deliveries (imports and exports) as well as wastage. Users will further be able to list all transactions and all transaction data, optionally filtered by transaction type (import, export, wastage) or item type, and/or sorted by item numbers, or importer/exporter name. Users will also be able to search transactions by importerlexporter name, item type, or item name. Last but not least, users will be able to query the total current stock. The program should have explanatory text as necessary and handle input errors etc. gracefully. Implement application features in a command processing style. For example, incoming and outgoing deliveries might be recorded via commands such as import 100 "iPhone" "electronics" "Apple, Inc." for recording the incoming delivery of 100 iPhones from Apple, withdraw 50 "iPhone" "Supersale Electronics Ltd." for logging the outgoing delivery of 50 iPhones to Supersale Electronics Ltd., search "iPhone" for listing all transactions of iPhones, list to see all transactions, or list filter "wastage+electronics" for listing all wastage of electronics items.

Step by Step Solution

3.41 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answers Online business is that the great deals impetus these days for a few wholesalers Online business is definitely not a pristine business technique in any case its participating in a gigantic job ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!