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
HEY THERE!!
In a camera, flash synchronization is defined as synchronizing the firing of a photographic flash with the opening of the shutter admitting light to photographic film or electronic image sensor. It is often shortened to flash sync or flash synch.
HOPE IT HELPS
Answer:
The answer is "Open System".
Explanation:
The term open system means a computing system, that integrated across software and hardware devices and provides complies with the same accessibility requirement.
- This connectivity and functionality mean, that a machine operating the Windows OS could be regarded as an open platform as can be seen by Windows being such a software OS.
- It is composed of the non-owned development tool, which is based on publicly reported values, that enable service providers to generate attach-on to the system.
Answer:
7 characters.
Explanation:
Here we have 26(small letters)+26(capital letters)+10(number from 0-9)=62
As we are having more number of possibilities for each character of the password, We will need a smaller length to reach the same or better level of security.
If we take 6 characters long password we will have 626 = 56,800,235,584 possibilities, which is less secure than the previous 8 characters long password.
But if we take 7 characters long password we will have 627 = 3,521,614,606,208 possibilities, which is almost 17 times larger than the previous password and has a smaller length when compared to the previous password.