Write a program which requests that requests a product name and a stock number . Store that data in a List or a Dictionary . After the user has entered data, request that the user enters Y or N to continue. If they enter N, print the list of products and stock numbers to the screen. If they enter Y, repeat the first step.
Your program should produce the following result:
Product Name: Widgets
Stock Level: 14
Widgets has been entered with a stock of 14 products.
Do you wish to enter another record? (Y/N) Y
Product Name: Fidgets
Stock Level: 22
Fidgets has been entered with a stock of 22 products.
Do you wish to enter another record? (Y/N) N
Hi the above is my assignment.
However, I have no idea what it really want me to do… as I only learn things from codeacademy
The most confusing is that how to make a request for entry data and how to proceed to show the data on the screen?
Any hit for me be to very appreciated. Thanks