Question: Please answer simply with explanations using python 5. (20 points) Create a program that uses a dictionary to keep track of the stock price of

Please answer simply with explanations using python  Please answer simply with explanations using python 5. (20 points) Create

5. (20 points) Create a program that uses a dictionary to keep track of the stock price of a group of companies. Your program shall: Create a dictionary to track the stock prices. (5 points) Read the stock symbol and a value (either positive or negative) indicating the change to be made to the current value of that stock. For example, for the inputs GOOG and 12, your program will add $12 to the current value of Google's stock. (5 points) . "If your program does not recognize a given stock symbol, it adds it to the dictionary using the input value as the initial price of this stock. (5 points) When the user enters the word 'quit' for the stock symbol, your program shall print the stock symbols in its dictionary with their corresponding final values. (5 points)

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!