0% found this document useful (0 votes)
6 views1 page

Inclass Test 03

The document outlines a coursework assignment for developing a Python application for a simple inventory management system. The system must allow users to add, remove, update, and display inventory items, with each item represented as a dictionary containing 'name', 'quantity', and 'price'. It includes requirements for basic setup, a main menu, and functionalities for managing inventory items, along with a graceful exit option.

Uploaded by

sahandumidu4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Inclass Test 03

The document outlines a coursework assignment for developing a Python application for a simple inventory management system. The system must allow users to add, remove, update, and display inventory items, with each item represented as a dictionary containing 'name', 'quantity', and 'price'. It includes requirements for basic setup, a main menu, and functionalities for managing inventory items, along with a graceful exit option.

Uploaded by

sahandumidu4
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

In-class Test 03

Introduction to Programming/ Programming Fundamentals


Coursework Description:

Develop a Python application for a simple inventory management system for a small store.
The system should allow the user to add, remove, update, and display inventory items. Each
inventory item will have a name, quantity, and price.

Requirements:

1. Basic Setup and Initialization:


o Create a list to store the inventory items. Each item can be represented as a

dictionary with keys: 'name', 'quantity', and 'price'. o Initialize the list with a few sample
items.

2. Main Menu:
o Display a main menu with options to:

1. Add a new item 2. Remove an item 3. Update an item 4. Display all items 5. Exit

3. Adding a New Item:


o Prompt the user for the name, quantity, and price of the new item. o Add the new item
to the inventory list.

4. Removing an Item:
o Prompt the user for the name of the item to be removed.
o Remove the item from the inventory list if it exists. If the item does not exist,

display an appropriate message. 5. Updating an Item:

o Prompt the user for the name of the item to be updated.


o If the item exists, prompt the user to enter the new quantity and price.
o Update the item with the new values. If the item does not exist, display an

appropriate message. 6. Displaying All Items:

o Display all the items in the inventory list in a tabular format.

o Show the item name, quantity, and price. 7. Exiting the Application:

o Provide an option to exit the application gracefull

You might also like