Computer Science, asked by rajareddy89, 10 months ago

plon
Codu wants to create a shopping application. The application would sel only S-T and SHOE and resea costat can be mo
needs. This application should allow users in two roles. viz store manager SM and shocoe S
Codu wants to test the app. He wants the application to execute a few commands and print the output
Following is the list of allowed commands
CMD SM ADD (ITEM NAME] [ITEM QTY] - adds the given quantity of the item to the inventory and press themed
when there is any error or invalid input. Item aty can only be whole numbers > 0
CMD SM REMOVE (ITEM NAMEJ - removes the item from the inventory, returns and prints -1 when there is the
CMD SM GET_QTY (ITEM NAME) - returns and prints the currently available quantity for them in the
item is not found
CMD SM INCR (ITEM NAME (ITEM QTY] - adds the given quantity of the tem to the memory and
prints(returns) -1 when there is any error or invalid inout item ay can only be whole numbers >
CMD SM DCR (ITEM NAME] [ITEM QTY] - removes the given quantity of them from the
man
prints(returns) -1 when there is any error or invalid input item ay can only be whole numbers >
CMD SM SET_COST (ITEM NAME (COST] - sets the cost of the tem res the theme
must be decimal​

Answers

Answered by vnr007
1
Bro please question that correctly it’s pretty confusing
Similar questions