Answer:
# input the number of temperatures required, which will be 10 here, but the user can print any number.
n=input("Enter the number of temperatures you want")
# create a list which can have n temperatures since it starts from 0, the maximum is n-1, and n needs to be converted to an integer.
temp= [0,int(n)-1]
#declared a variable of float type. As its 0.0 it will be a float, if 0 then integers, and so on
s=0.0
#running a for loop n times, and hence 0 to n-1.
for i in range(0, int(n)):
temp[i]=input("Enter the temperature in degree celsius in float")
s=s + float(temp[i])
i=i+1
print("The sum of the temperatures is:{0:0.1f}", +s)
Explanation:
The question from edhesive is: You need to write a program that calls for ten temperatures and then find the sum of temperatures. The temperature should be in float, which is expected. And the program is as being mentioned in the answer section.
Answer:
A technician is configuring a new SOHO multifunction wireless router at a customer's location to provide network access to several wireless ...
Explanation:
Answer:
The data-link layer
Explanation:
The physical layer and data-link layer are often confused a lot especially in terms of what they do in the TCP/IP 7 layer protocol. The physical layer as the name suggests represents the physical devices like the cables and the connectors that join or interconnect computers together. This layer is also responsible for sending the signals over to other connections of a network. The data-link, on the other hand, translates and interprets these sent binary signals so that network devices can communicate. This layer is responsible in adding mac addresses to data packets and encapsulating these packets into frames before being placed on the media for transmission. Since it resides in between the network layer and the physical layer, it connects the upper layers of the TCP/IP model to the physical layer.
Answer:
function pecoDesconto(preco, estaComDesconto) {
let p = preco;
let desconto = estaComDesconto;
if(p > 100 && desconto == false){
return "Quero pechinchar";
}else{
return "Negócio fechado";
}
}
Explanation:
function pecoDesconto(preco, estaComDesconto) {
// Implemente a função ao lado, que recebe um preço//
let p = preco;
// variavel que indica desconco//
let desconto = estaComDesconto;
//Se o preço for maior que 100 e não estiver com desconto, a função deve retornar Quero pechinchar.//
if(p > 100 && desconto == false){
return "Quero pechinchar";
//Caso contrário, deve retornar Negócio fechado
}else{
return "Negócio fechado"
}
}
só te faltou ler com atenção, e um pouco de logica!