Question: Part - I i need solution for test case table ( Only 2 0 % of your total course grade ) Capital Computer store in

Part-I i need solution for test case table
(Only 20% of your total course grade)
Capital Computer store in Oman sells different electronics products such as Computers, Laptops and accessories.
The store Management requires an automated software to keep track of items in stock and prices. You as a software designer and developer are asked to develop a system for the store.
The first task you should carry out is to design and code a class related to stocked Items. You can name this class as Item_in_Stock.
The class should consist of the following:
A data member Item_code to store an item code e.g, C15, a data member to store item name, a data member to store item description, a data member to store quantity of items in stock and a data member item_price to store price of an item. You must use the appropriate data types and access specifier for each data member.
An add_Item method to add items in stock with a check that item stock does not exceed 25. An appropriate message should be displayed if the inserted item exceeds the limit.
An item_Sell member method to sell items, method should ask for quantity of selling item and then reduce the stock level accordingly.
A tax_on_Item method gives tax on items (Tax is fixed at 5%)
A method to set item price without tax and get method to get item price both with and without tax
A method named get_Item_Details() that provides Item code, Item Category, Item name, Item description, quantity in stock, and price with and without tax.
Task 1.1 Graphically represents the above mentioned class in UML by drawing a class diagram.
Task 1.2. Implementation of the class using python language.
Write a program called Stocked_Item with the main () method to test the Item_in_Stock class.
Testing is an integral part of development. Write suitable test cases in the given format below for your class.
\table[[Test Case,Purpose,Expected result],[,,],[,,]]
Adding 6 more items
Example OUTPUT:
Item Details:
Item Code: C15
Item Name: Laptop
Item Description: High-performance laptop
Quantity in Stock: 20
Price with Tax: 840.0
Price without Tax: 800.0
5 items added to stock.
Enter the quantity to sell: 6
6 items sold.
Task 1.1 Graphically represents the above mentioned class in UML by drawing a class diagram.
Task 1.2. Implementation of the class using python language.
Write a program called Stocked_Item with the main () method to test the Item_in_Stock class.
Testing is an integral part of development. Write suitable test cases in the given format below for your class.
\table[[Test Case,Purpose,Expected result],[,,],[,,]]
Example OUTPUT:
Adding 6 more items
Item Details:
Item Code: C15
Item Name: Laptop
Item Description: High-performance laptop
Quantity in Stock: 20
Price with Tax: 840.0
Price without Tax: 800.0
5 items added to stock.
Enter the quantity to sell: 6
6 items sold.
Updated Item Details:
Item Code: C15
Item Name: Laptop
Item Description: High-performance laptop
Quantity in Stock: 19
Price with Tax: 840.0
Price without Tax: 800.0
Adding 25 more Items
The error: Item stock must not exceed 25 items
Item Details:
Item Code: C15
Item Name: Laptop
Item Description: High-performance laptop
Quantity in Stock: 20
Price with Tax: 840.0
Price without Tax: 800.0
5 items added to stock.
Enter the quantity to sell: 200
Error: Insufficient stock to fulfill the sale.
Updated Item Details:
Item Code: C15
Item Name: Laptop
Item Description: High-performance laptop
Quantity in Stock: 25
Price with Tax: 840.0
Price without Tax: 800.0
I need a solution for the table test case

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!