hat analyze Write a program named "StockPrice.py" that analyzes stock market price for a list of firms. The program prompts the user to enter the total number of stocks, then prompts the user to enter...

Use python to write the code!hat analyze<br>Write a program named

Extracted text: hat analyze Write a program named "StockPrice.py" that analyzes stock market price for a list of firms. The program prompts the user to enter the total number of stocks, then prompts the user to enter all the stocks with the name and stock price on each line. After that, it displays the average stock price, and the stocks with prices above the average Sample Run Enter the number of stocks: 4 Stock 1 name: Microsoft Stock 1 price: 150.0 Stock 2 name: Apple Stock 2 price: 260.O Stock 3 name: Amazon Stock 3 price: 170.0 Stock 4 name: Facebook Stock 4 price: 200.0 Average stock price is 195 Apple is above average Facebook is above average Hint: Define two ID lists, Use one list to store the names of the stocks. Use another list to store the stock prices. Note: Please add approbate comments in your program.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here