Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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)
Please answer simply with explanations using python
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started