A USB drive is portable and can be used.
It is easy to find information, but it is not always right.
Answer:
The solution code is written in Python 3
- SPY = float(input("Enter SPY Amount: "))
- QQQ = float(input("Enter QQQ Amount: "))
- EEM = float(input("Enter EEM Amount: "))
- VXX = float(input("Enter VXX Amount: "))
-
- totalAmount = SPY + QQQ + EEM + VXX
- print("Total amount invested: $" + str(totalAmount))
- print("Percentage invested for SPY: " + str(SPY / totalAmount * 100) + "%")
- print("Percentage invested for QQQ: " + str(QQQ / totalAmount * 100) + "%")
- print("Percentage invested for EEM: " + str(EEM / totalAmount * 100) + "%")
- print("Percentage invested for VXX: " + str(VXX / totalAmount * 100) + "%")
Explanation:
Firstly, let's declare four variables, SPY, QQQ, EEM and VXX and use input() function to prompt user to input the amount invested in each fund (Line 1 - 4).
Next, sum up all the funds' amount and assign the total to totalAmount variable (Line 6).
Next display the total amount invested and the percentage invested for each fund using print function (Line 7 - 11). Please note the formula to calculate the percentage of investment is
(fund / totalAmount ) * 100
Answer:
Malware is designed to cause damage to a stand alone computer or a networked pc. So wherever a malware term is used it means a program which is designed to damage your computer it may be a virus, worm or Trojan.
Explanation:
A partition made of fireproof material to prevent the spread of a fire from one part of a building or ship to another or to isolate an engine compartment, as on a plane, automobile, etc.