Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task: Create a solution that accepts an integer input identifying how many shares of stock are to be purchased from the Old Town Stock Exchange,
Task:
Create a solution that accepts an integer input identifying how many shares of stock are to be purchased from the Old Town Stock Exchange, followed by an equivalent number of string inputs representing the stock selections. The following dictionary stock lists available stock selections as the key with the cost per selection as the value.
stocks TSLA: BBBY: 'AAPL': 'SOFI': 'KIRK': 'AURA': 'AMZN': 'EMBK': 'LVLU':
Output the total cost of the purchased shares of stock to two decimal places.
The solution output should be in the format
Total price: $costofstocks
Sample InputOutput:
If the input is
SOFI
AMZN
LVLU
then the expected output is
Total price: $
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