Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The last task on the coding challenge asks you to analyze trade data to find out how often specific stocks are traded. Write a function
The last task on the coding challenge asks you to analyze trade data to find out how often specific stocks are traded. Write a function counttradefrequency that takes a trade data string and a stock symbol also a string as parameters. The function should return the number of times the stock symbol appears in the trade data. The capitalization of the symbol should not affect the count. Trades are separated by semicolons. If the empty string is passed as either argument the function should return
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