Answer:
There are different phases of railroad expansion with the innovations in technology.
Explanation:
Few of the technological innovations are described below that leads in railroad expansion more rapid.
1. Centralized Traffic control (CTC) is introduced in 1960's that is used to control the traffic on railroads using different signal control.
2. In 1990's after computer technology involvement, railway ticket and reservation system is automate and being centralized. That makes the railroad expansion improve.
3. Bullet train technology has been introduced, that makes the railway trains more faster.
4. Electric trains has been introduced to use green energy and reduce the dependency on the fuel to make environment clean and green.
Answer:
d
Explanation:
because all in one question form
Answer:
The algorithm for switching off the electric water heater automatically when the temperature rises to 70 o Celsius is given below.
Explanation:
Let use python code for this question.
we will use if statement to check the condition if the temperature is greater than 70.
When the temperature is 70, then the algorithm will send signal to hardware to turn yourself off.
if(temperature==70):
print("send_turn_off_signal")
Answer:
Following are the code to this question:
file= open('book.txt') #open file
li= {} #define an empty list
for lines in file: # use for loop Split file data into words
d= lines.lower().strip(' !?').split() #define variable d that Add it to map
for val in d: #define loop to store data
if val not in li: #check value is not in list
li[val] = 0 #define list and assign value in 0
li[val] = li[val] + 1 #Sort the book data and add its value
m = sorted(li.items(),key = lambda x : -x[1]) #sorted value into the m variable
print(m[:10]) #print value
Output:
please find the attachment.
Explanation:
In the given python code first, we open the file "book.txt", in next line, an empty list is defined, that uses the for loop which can be described as follows:
- In the for loop is used, that reads the file data, and defines a variable "d", that stores the values into the map.
-
In the next line another loop is used, that check file values, if values are the same type so, it adds values and writes it.
- In the last line, m variable is used, that sorts the values and use the slicing to print its value.