Answer:
The program in Python is as follows:
num = int(input())
numList = []
for i in range(num+1):
numInput = int(input())
numList.append(numInput)
for i in range(len(numList)-1):
if numList[i] <= numList[-1]:
print(numList[i],end=" ")
Explanation:
This gets input for the number of integers
num = int(input())
This initializes an empty list
numList = []
This iterates through the number of integers and gets input for each
for i in range(num+1):
numInput = int(input())
The inputs including the threshold are appended to the list
numList.append(numInput)
This iterates through the list
for i in range(len(numList)-1):
All inputs less than or equal to the threshold are printed
if numList[i] <= numList[-1]:
print(numList[i],end=" ")
Answer:
DNS
Explanation:
The DNS, also known as the Domain Name System is regarded as the internet's phonebook. It is through this medium that information is access online using domain names such as www.microsoft.com. While web browsers can communicate via IP addresses, the Domain Name System (DNS) translate the www.microsoft.com to the IP addresses in order to help the browsers load the resources on the internet. In a case where an error message is received, then the DNS network setting will show you the address of the server to resolve the issue.
Feedbacks
perhaps !!
<span>The feedback loop allows the receiver to communicate with the sender in the imc process.</span>
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
This is true. I'm not sure what you're asking here, but if it's a true/false statement, it's true.