An array of floats that can hold up to 20.
<span>The correct answer here is Hallucinogen.
Technically all drugs one way or another distort the perception of reality and thought processes but hallucinogens are especially potent in that regard. Hallucinogens are those agents that can cause, among other things, hallucinations and changes in consciousness, emotions and thoughts. LSD is maybe the most known representative of the hallucinogens. </span>
Answer:
3) A Single linked list is a sequence of elements in which every element has link to its next element in the sequence.
DATA LINK
DATA stores actual value , LINK stores address of next node
As per information given in question, letters at the even addresses are items in linked list and the odd addresses will be used as links.
Even Address Odd Address
12 (Stores 't') 13 (Used as link)
14 (Stores 'm') 15 (Used as link)
16 (Stores 'a') 17 (Used as link)
18 (Stores 'r') 19 (Used as link)
20 (Stores 's') 21 (Used as link)
Numbers represented by circle are addresses of respective nodes. Here Front or Head has address 16. Which represents the Head Node.
Following image represents the word "smart" with respective nodes and their addressing.
Numbers represented by circle are addresses of respective nodes.
The head pointer is: 20
Answer:
no_of_shares = int(input("Enter the number of shares: "))
purchase_price = float(input("Enter the purchase price of the stock: "))
sale_price = float(input("Enter the sale price of the stock: "))
total_stock_price = purchase_price*no_of_shares
total_spend_on_buying = total_stock_price + (0.03*total_stock_price)
total_sale_price = sale_price*no_of_shares
commission_while_selling = total_sale_price*0.03
net_gain_or_loss = total_sale_price - (total_spend_on_buying + commission_while_selling)
if(net_gain_or_loss<0):
print("After the transaction, you lost {} dollars".format(abs(net_gain_or_loss)))
else:
print("After the transaction, you made {} dollars".format(abs(net_gain_or_loss)))