1. In a file called stock.py, make a class Stock with 3 methods and one attribute called value.
class Stock:
2. A new instance of a Stock object calls the init method below. This initializes the stock’s value to the purchase_price argument, which has a default value of $10000.
def __init__(self, purchase_price = 10000):
"""Initialize the value."""
self.value = purchase_price
3. The Stock class needs a method called gain() that generates a random number between 1 and 10, using the randint method from the random standard library. Get this with:
from random import randint amt = randint(1,10)
a. Add the result to the value of the stock.
4. In a file called finances.py, import Stock from the file stock.py. Create a new stock with a purchase price of $50000, and let it gain money for 10 days. At the end of 10 days, print the results. (Stock needs a function to either print or return the value).
You must upload both python files AND a screenshot showing the code running.
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme