Answer:
- with(open("numbers.txt")) as file:
- data = file.readlines()
- runsum = 0
- largest = 0
-
- for x in data:
- if(int(x) > largest):
- largest = int(x)
- runsum += largest
-
- print(runsum)
Explanation:
The solution code is written in Python 3.
Firstly, open a filestream for numbers.txt (Line 1) and then use readlines method to get every row of data from the text files (Line 2).
Create a variable runsum to hold the running sum of number bigger than the maximum value read up to that iteration in a for loop (Line 3).
Use a for loop to traverse through the read data and then check if the current row of integer is bigger than the maximum value up to that point, set the current integer to largest variable and then add the largest to runsum (Line 6 - 9).
At last display the runsum to console terminal (Line 11).
<span>JPEG files </span><span> are a common file format for digital photos and other digital graphics so she would be looking for a picture
</span>
Answer:
B) False
Explanation:
The java programming language uses Dots (periods) as an operator (The dot operator). It is used when referring to the variables or methods of a class. The syntax is ClassName.variableName or ClassName.methodName. We are very familiar with the System.out (java.lang.System.out) which refers to the variable out contained in the class System. Another example is input.nextInt( ) In this case the nextInt ( ) method is being called.
Answer:
You should do the following:
- Create an account of computer for RODC in the domain controller OU (Organizational unit) as well as allow the Micheal's account to join the computer to the domain.
Explanation:
RODC:
It is called as Read only domain controller that is used to ensure the protection of the servers at remote offices of an organizations.
- In this case, you are installing an RODC in a new branch office that is remote. For installation of RODC on windows server 2012 R2, we need to create an account for the computer in the domain controller organizational unit for the installation of RODC.
- We also need to create an account for Micheal's with the privilege to join that computer to the domain.
Answer:
The amount to be paid is €2.88 for the amount of power consumed
Explanation:
The first thing to do here is to convert the power consumption to kilo-watt
1 kilowatt = 1000 watt
x kilowatt = 1200 watt
x = 1200/1000 = 1.2 KW
we now convert this to kilowatt hour by multiplying the number of hours by the number of kilowatt.
That would be 20 * 1.2 = 24 KWh
Now, the charge is 0.12€/kWh
for 24 kWh, we have 24 * 0.12 = €2.88