Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Python: Stock Pricing The DOW Jones stock ticker has been on a roller coaster ride these past 12 months. A local hardware store has invested

Python: Stock Pricing The DOW Jones stock ticker has been on a roller coaster ride these past 12 months. A local hardware store has invested deeply into the bond market. In order for us to simulate any stock prices we can write a simple program using a list and either While or For loop to store 100 random values into each element in a list. Whenever you get a random number, you are assuming you have received the price of a stock that this hardware store is interested. You need to write a program that will randomly generate 100 different stock prices using a list ranged from (40 to 180) inclusive. Next, calculate the average stock price, the highest price, and the lowest price of the stocks in the list. Lastly, print out what you found.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

Students also viewed these Databases questions

Question

Define Scientific Management

Answered: 1 week ago

Question

Explain budgetary Control

Answered: 1 week ago

Question

Solve the integral:

Answered: 1 week ago

Question

What is meant by Non-programmed decision?

Answered: 1 week ago