Answer:
#here is code in python.
#read number of shares
num_share = int(input("Enter number of shares:"))
#read purchase price
buy_p = float(input("Enter purchase price:"))
#read sell price
sell_p = float(input("Enter sale price:"))
#total buying cost
buy_cost=buy_p*1.03*num_share
#total selling cost
sell_cost=sell_p*0.97*num_share
#if net profit
if(sell_cost>buy_cost):
print("After the transaction, you made " +str(sell_cost-buy_cost)+ " dollars.")
#if net loss
else:
print("After the transaction, you lost " +str(buy_cost-sell_cost)+ " dollars.")
Explanation:
Read the total number of shares from user.Then read buying price of a share and selling price of a share.Then calculate total buying cost including commission.Calculate total selling cost excluding the commission.If total buying cost is greater than total selling cost the print the profit else print the loss in the transaction.
Output:
Enter number of shares:10
Enter purchase price:10
Enter sale price:10
After the transaction, you lost 6.0 dollars.
Answer:
25% chance.
Explanation:
There is 25% chance it'll be h*m*zygous red, 50% chance it'll be h*t*rozygous red, and 25% chance it'll be h*m*zygous wh*te.
(Censored because it wouldn't let me post it for some reason. Honestly hope this doesn't work.)
The SQL SELECT built-in function COUNT none of the above options.
<h3>What is a SELECT query?</h3>
A select query is known to be a kind of a database object that depicts the information that is shown in Datasheet view.
Note that A query does not save data, it shows data that is saved in tables. The SELECT statement is known to be one that is often used to select data from what we call a database.
Hence, The data returned is said to be saved in a result table, known to be the result-set.
Based on the above, the SQL SELECT built-in function COUNT none of the above options.
Learn more about SQL SELECT from
brainly.com/question/10097523
#SPJ1
Answer: Between Layers 2 and 3
Explanation:
In between Layer 2 and Layer 3 the MPLS header is present and is known as Shim header. It is also said to be in 2.5.